def push_to(self, ip, port) -> None:
"""Push to the specified network address."""
with self.hashgraph.lock:
data_string = self.generate_data_string(self.hashgraph.me,
self.hashgraph.lookup_table,
filter_members_with_address(self.hashgraph.known_members.values()))
factory = PushClientFactory(data_string, network=self)
def push():
reactor.connectTCP(ip, port, factory)
threads.blockingCallFromThread(reactor, push)
评论列表
文章目录