socks

Name

socks -- SOCKS protocol interface.

Synopsis



#define     GNET_SOCKS_PORT
gboolean    gnet_socks_get_enabled          (void);
void        gnet_socks_set_enabled          (gboolean enabled);
GInetAddr*  gnet_socks_get_server           (void);
void        gnet_socks_set_server           (const GInetAddr *ia);

Description

SOCKS is a protocol for interfacing with a SOCKS TCP proxy.

Details

GNET_SOCKS_PORT

#define     GNET_SOCKS_PORT

Default port for SOCKS protocol.


gnet_socks_get_enabled ()

gboolean    gnet_socks_get_enabled          (void);

Determine whether GNet SOCKS support is enabled.

Returns : TRUE if SOCKS is enabled.


gnet_socks_set_enabled ()

void        gnet_socks_set_enabled          (gboolean enabled);

Set whether GNet SOCKS support is enabled.

enabled : Is SOCKS support enabled?


gnet_socks_get_server ()

GInetAddr*  gnet_socks_get_server           (void);

Get the address of the SOCKS server used for TCP connections. Checks the gnet_socks_set_server() value and, if not set, the SOCKS_SERVER environment variable. The SOCKS_SERVER enviroment variable can be in the form HOSTNAME or HOSTNAME:PORT.

Returns : Copy of the address; NULL if no server or SOCKS is disabled.


gnet_socks_set_server ()

void        gnet_socks_set_server           (const GInetAddr *ia);

Set the address of the SOCKS server used for TCP connections.

ia : SOCKS server address