Exemplo n.º 1
0
 def state_proxy_handshake_done(self):
     Socks5Connection.state_proxy_handshake_done(self)
     self.nodeid = randomBytes(8)
     self.append_write_buf(protocol.assembleVersionMessage(self.destination.host, self.destination.port, \
             network.connectionpool.BMConnectionPool().streams, False, nodeid=self.nodeid))
     self.set_state("bm_header", expectBytes=protocol.Header.size)
     return True
Exemplo n.º 2
0
 def state_proxy_handshake_done(self):
     Socks5Connection.state_proxy_handshake_done(self)
     self.nodeid = randomBytes(8)
     self.append_write_buf(protocol.assembleVersionMessage(self.destination.host, self.destination.port, \
             network.connectionpool.BMConnectionPool().streams, False, nodeid=self.nodeid))
     self.set_state("bm_header", expectBytes=protocol.Header.size)
     return True
Exemplo n.º 3
0
 def state_proxy_handshake_done(self):
     """State when SOCKS5 connection succeeds, we need to send a Bitmessage handshake to peer."""
     Socks5Connection.state_proxy_handshake_done(self)
     self.nodeid = randomBytes(8)
     self.append_write_buf(
         protocol.assembleVersionMessage(
             self.destination.host,
             self.destination.port,
             network.connectionpool.BMConnectionPool().streams,
             False,
             nodeid=self.nodeid))
     self.set_state("bm_header", expectBytes=protocol.Header.size)
     return True