def endpoint(self, reactor):
"""
Create an L{IStreamServerEndpoint} that will talk to the node process
that is described by this L{NodeInfo}.
@return: an endpoint that will connect to this host.
@rtype: L{IStreamServerEndpoint}
"""
return TCP4ClientEndpoint(reactor, self.hostname, self.port)
评论列表
文章目录