MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / state_proxy_handshake_done

Method state_proxy_handshake_done

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

Source from the content-addressed store, hash-verified

247 self.set_state("init")
248
249 def state_proxy_handshake_done(self):
250 Socks4aConnection.state_proxy_handshake_done(self)
251 self.nodeid = randomBytes(8)
252 self.append_write_buf(protocol.assembleVersionMessage(self.destination.host, self.destination.port, \
253 network.connectionpool.BMConnectionPool().streams, False, nodeid=self.nodeid))
254 self.set_state("bm_header", expectBytes=protocol.Header.size)
255 return True
256
257
258class TCPServer(AdvancedDispatcher):

Callers

nothing calls this directly

Calls 4

randomBytesFunction · 0.90
append_write_bufMethod · 0.80
set_stateMethod · 0.80

Tested by

no test coverage detected