(self)
| 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()) |
nothing calls this directly
no test coverage detected