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

Method state_proxy_port

src/network/socks5.py:113–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 return True
112
113 def state_proxy_port(self):
114 self.boundport = struct.unpack(">H", self.read_buf[0:2])[0]
115 self.__proxysockname = (self.boundaddr, self.boundport)
116 if self.ipaddr is not None:
117 self.__proxypeername = (socket.inet_ntoa(self.ipaddr), self.destination[1])
118 else:
119 self.__proxypeername = (self.destination[0], self.destport)
120 self.set_state("proxy_handshake_done", length=2)
121 return True
122
123 def proxy_sock_name(self):
124 return socket.inet_ntoa(self.__proxysockname[0])

Callers

nothing calls this directly

Calls 1

set_stateMethod · 0.80

Tested by

no test coverage detected