src/socks_client.c File Reference

Handles SOCKS requests. More...

Data Structures

struct  sx_session_tag

Typedefs

typedef struct sx_session_tag sx_session_s

Functions

con_upstream_action_e sx_read (con_connection_s *connection)
 Called when it's time to read data from the connection.
bool sx_accept (con_connection_s *connection)
 Called when a client is accepted by the connection module.
void sx_close (con_connection_s *connection, con_close_reason_e reason)
 Called when a connection is closed.

Detailed Description

Handles SOCKS requests.

Date:
19 Feb 2010
Author:
Zachary Sims <zacs7@users.sourceforge.net>

Module prefix: sx_

$Id$


Typedef Documentation

typedef struct sx_session_tag sx_session_s

Function Documentation

bool sx_accept ( con_connection_s connection  ) 

Called when a client is accepted by the connection module.

Parameters:
connection The connection that was accepted.
Returns:
true if we're happy. false if we want the connection to be closed.
void sx_close ( con_connection_s connection,
con_close_reason_e  reason 
)

Called when a connection is closed.

Either by us, or the other end.

Parameters:
connection The connection to close, valid to read or write from.
reason The reason for the close.
con_upstream_action_e sx_read ( con_connection_s connection  ) 

Called when it's time to read data from the connection.

Parameters:
connection The connection with data on it.
Returns:
CON_UPSTREAM_CLOSE if the connection should be closed.

Generated by  doxygen 1.6.2