MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / state_proxy_handshake_done

Method state_proxy_handshake_done

src/network/tcp.py:234–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232 self.set_state("init")
233
234 def state_proxy_handshake_done(self):
235 Socks5Connection.state_proxy_handshake_done(self)
236 self.nodeid = randomBytes(8)
237 self.append_write_buf(protocol.assembleVersionMessage(self.destination.host, self.destination.port, \
238 network.connectionpool.BMConnectionPool().streams, False, nodeid=self.nodeid))
239 self.set_state("bm_header", expectBytes=protocol.Header.size)
240 return True
241
242
243class Socks4aBMConnection(Socks4aConnection, TCPConnection):

Callers 1

Calls 3

randomBytesFunction · 0.90
append_write_bufMethod · 0.80
set_stateMethod · 0.80

Tested by

no test coverage detected