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

Method handle_connect

src/network/proxy.py:95–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 self.connect(self.proxy)
94
95 def handle_connect(self):
96 self.set_state("init")
97 try:
98 AdvancedDispatcher.handle_connect(self)
99 except socket.error as e:
100 if e.errno in asyncore._DISCONNECTED:
101 logger.debug("%s:%i: Connection failed: %s", self.destination.host, self.destination.port, str(e))
102 return
103 self.state_init()
104
105 def state_proxy_handshake_done(self):
106 self.connectedAt = time.time()

Callers

nothing calls this directly

Calls 2

set_stateMethod · 0.80
state_initMethod · 0.45

Tested by

no test coverage detected