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

Method state_auth_done

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

Source from the content-addressed store, hash-verified

165 Socks5.__init__(self, address=(self.host, self.port))
166
167 def state_auth_done(self):
168 # Now we can request the actual connection
169 self.append_write_buf(struct.pack('BBB', 0x05, 0xF0, 0x00))
170 self.append_write_buf(chr(0x03).encode() + chr(len(self.host)).encode() + str(self.host))
171 self.append_write_buf(struct.pack(">H", self.port))
172 self.set_state("pre_connect", length=0, expectBytes=4)
173 return True
174
175 def resolved(self):
176 print "Resolved %s as %s" % (self.host, self.proxy_sock_name())

Callers

nothing calls this directly

Calls 3

append_write_bufMethod · 0.80
set_stateMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected