(self,addr)
初始化远程调用对象
初始化远程调用对象
初始化远程调用对象
def connect(self,addr):
        '''初始化远程调用对象'''
        self._addr = addr
        reactor.connectTCP(addr[0], addr[1], self._factory)
        self.takeProxy()
def connect ( self , addr ) : self . _addr = addr reactor . connectTCP ( addr [ 0 ] , addr [ 1 ] , self . _factory ) self . takeProxy ( )