GNet Network Library Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# socks

## Name

socks --

## 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

## 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 : |

### gnet_socks_set_enabled ()

    void        gnet_socks_set_enabled          (gboolean enabled);

Set whether GNet SOCKS support is enabled.

`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 : |

### gnet_socks_set_server ()

    void        gnet_socks_set_server           (const GInetAddr *ia);

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

`ia` : |

<<< Previous Page | Home | Up | Next Page >>>
unix | udp