'called when we receive a packet on the transport'

def packetReceived(self, messageNum, packet):

    if (messageNum in self.protocolMessages):
        messageType = self.protocolMessages[messageNum]
        f = getattr(self, ('ssh_%s' % messageType[4:]), None)
        if (f is not None):
            return f(packet)
    log.msg(("couldn't    handle    %r" % messageNum))
    log.msg(repr(packet))
    self.transport.sendUnimplemented()
