(self)
sends RESOLVE_PTR request (Tor custom)
sends RESOLVE_PTR request (Tor custom)
sends RESOLVE_PTR request ( Tor custom )
def _send_resolve_request(self):
        "sends RESOLVE_PTR request (Tor custom)"
        host = self._addr.host.encode()
        self._data_to_send(
            struct.pack(
                '!BBBBB{}sH'.format(len(host)),
                5,                   # version
                0xF0,                # command
                0x00,                # reserved
                0x03,                # DOMAINNAME
                len(host),
                host,
                0,  # self._addr.port?
            )
        )
def _send_resolve_request ( self ) : host = self . _addr . host . encode ( ) self . _data_to_send ( struct . pack ( '!BBBBB{}sH' . format ( len ( host ) ) , 5 , # version 0xF0 , # command 0x00 , # reserved 0x03 , # DOMAINNAME len ( host ) , host , 0 , # self._addr.port? ) )