(self)
连接建立处理
连接建立处理
连接建立处理
def connectionMade(self):
        '''连接建立处理
        '''
        address = self.transport.getAddress()
        log.msg('Client %d login in.[%s,%d]'%(self.transport.sessionno,\
                address[0],address[1]))
        self.factory.connmanager.addConnection(self)
        self.factory.doConnectionMade(self)
def connectionMade ( self ) : address = self . transport . getAddress ( ) log . msg ( 'Client %d login in.[%s,%d]' % ( self . transport . sessionno , address [ 0 ] , address [ 1 ] ) ) self . factory . connmanager . addConnection ( self ) self . factory . doConnectionMade ( self )