Tor  0.4.5.0-alpha-dev
Data Structures | Macros
socks_request_st.h File Reference

Client request structure. More...

#include "lib/net/socks5_status.h"

Go to the source code of this file.

Data Structures

struct  socks_request_t
 

Macros

#define MAX_SOCKS_REPLY_LEN   1024
 
#define SOCKS_NO_AUTH   0x00
 
#define SOCKS_USER_PASS   0x02
 
#define SOCKS_COMMAND_CONNECT   0x01
 
#define SOCKS_COMMAND_RESOLVE   0xF0
 
#define SOCKS_COMMAND_RESOLVE_PTR   0xF1
 
#define SOCKS_COMMAND_IS_CONNECT(c)   (((c)==SOCKS_COMMAND_CONNECT) || 0)
 
#define SOCKS_COMMAND_IS_RESOLVE(c)
 

Detailed Description

Client request structure.

Definition in file socks_request_st.h.

Macro Definition Documentation

◆ SOCKS_COMMAND_CONNECT

#define SOCKS_COMMAND_CONNECT   0x01

Please open a TCP connection to this addr:port.

Definition at line 23 of file socks_request_st.h.

◆ SOCKS_COMMAND_IS_RESOLVE

#define SOCKS_COMMAND_IS_RESOLVE (   c)
Value:

Definition at line 31 of file socks_request_st.h.

◆ SOCKS_COMMAND_RESOLVE

#define SOCKS_COMMAND_RESOLVE   0xF0

Please turn this FQDN into an IP address, privately.

Definition at line 25 of file socks_request_st.h.

◆ SOCKS_COMMAND_RESOLVE_PTR

#define SOCKS_COMMAND_RESOLVE_PTR   0xF1

Please turn this IP address into an FQDN, privately.

Definition at line 27 of file socks_request_st.h.

SOCKS_COMMAND_RESOLVE_PTR
#define SOCKS_COMMAND_RESOLVE_PTR
Definition: socks_request_st.h:27
SOCKS_COMMAND_RESOLVE
#define SOCKS_COMMAND_RESOLVE
Definition: socks_request_st.h:25