socks_request_t Struct Reference

#include <or.h>


Data Fields

char socks_version
int command
size_t replylen
char reply [MAX_SOCKS_REPLY_LEN]
char address [MAX_SOCKS_ADDR_LEN]
uint16_t port
unsigned int has_finished: 1


Detailed Description

State of a SOCKS request from a user to an OP. Also used to encode other information for non-socks user request (such as those on TransPort and DNSPort)

Field Documentation

Which version of SOCKS did the client use? One of "0, 4, 5" -- where 0 means that no socks handshake ever took place, and this is just a stub connection (e.g. see connection_ap_make_link()).

Referenced by connection_ap_handshake_socks_reply(), connection_ap_handshake_socks_resolved(), connection_ap_make_link(), and fetch_from_buf_socks().

char socks_request_t::reply[MAX_SOCKS_REPLY_LEN]

Write an entry into this string if we want to specify our own socks reply, rather than using the default socks4 or socks5 socks reply. We use this for the two-stage socks5 handshake.

Referenced by connection_ap_handshake_process_socks(), and fetch_from_buf_socks().

char socks_request_t::address[MAX_SOCKS_ADDR_LEN]


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:23 2010 for tor by  doxygen 1.5.6