Data Structures | |
struct | _Ecore_Con_Event_Proxy_Bind |
Used as the data param for the ECORE_CON_EVENT_PROXY_BIND event. More... | |
Typedefs | |
typedef struct Ecore_Con_Socks | Ecore_Con_Socks |
An object representing a SOCKS proxy. More... | |
Functions | |
ECORE_CON_API Ecore_Con_Socks * | ecore_con_socks4_remote_add (const char *ip, int port, const char *username) |
Adds a SOCKS v4 proxy to the proxy list. More... | |
ECORE_CON_API Eina_Bool | ecore_con_socks4_remote_exists (const char *ip, int port, const char *username) |
Finds a SOCKS v4 proxy in the proxy list. More... | |
ECORE_CON_API void | ecore_con_socks4_remote_del (const char *ip, int port, const char *username) |
Removes a SOCKS v4 proxy from the proxy list and delete it. More... | |
ECORE_CON_API Ecore_Con_Socks * | ecore_con_socks5_remote_add (const char *ip, int port, const char *username, const char *password) |
Adds a SOCKS v5 proxy to the proxy list. More... | |
ECORE_CON_API Eina_Bool | ecore_con_socks5_remote_exists (const char *ip, int port, const char *username, const char *password) |
Finds a SOCKS v5 proxy in the proxy list. More... | |
ECORE_CON_API void | ecore_con_socks5_remote_del (const char *ip, int port, const char *username, const char *password) |
Removes a SOCKS v5 proxy from the proxy list and delete it. More... | |
ECORE_CON_API void | ecore_con_socks_lookup_set (Ecore_Con_Socks *ecs, Eina_Bool enable) |
Sets DNS lookup mode on an existing SOCKS proxy. More... | |
ECORE_CON_API Eina_Bool | ecore_con_socks_lookup_get (Ecore_Con_Socks *ecs) |
Gets DNS lookup mode on an existing SOCKS proxy. More... | |
ECORE_CON_API void | ecore_con_socks_bind_set (Ecore_Con_Socks *ecs, Eina_Bool is_bind) |
Enables bind mode on a SOCKS proxy. More... | |
ECORE_CON_API Eina_Bool | ecore_con_socks_bind_get (Ecore_Con_Socks *ecs) |
Returns bind mode of a SOCKS proxy. More... | |
ECORE_CON_API unsigned int | ecore_con_socks_version_get (Ecore_Con_Socks *ecs) |
Returns SOCKS version of a SOCKS proxy. More... | |
ECORE_CON_API void | ecore_con_socks_remote_del (Ecore_Con_Socks *ecs) |
Removes a SOCKS v4 proxy from the proxy list and delete it. More... | |
ECORE_CON_API void | ecore_con_socks_apply_once (Ecore_Con_Socks *ecs) |
Sets a proxy object to be used with the next server created with ecore_con_server_connect(). More... | |
ECORE_CON_API void | ecore_con_socks_apply_always (Ecore_Con_Socks *ecs) |
Sets a proxy object to be used with all servers created with ecore_con_server_connect(). More... | |
An object representing a SOCKS proxy.
ECORE_CON_API Ecore_Con_Socks * ecore_con_socks4_remote_add | ( | const char * | ip, |
int | port, | ||
const char * | username | ||
) |
Adds a SOCKS v4 proxy to the proxy list.
Use this to create (or return, if previously added) a SOCKS proxy object which can be used by any ecore_con servers.
ip | The ip address of the proxy. (NOT DOMAIN NAME. IP ADDRESS.) |
port | The port to connect to on the proxy. |
username | The username to use for the proxy. (OPTIONAL) |
NULL
on failure. References eina_list_append(), and eina_stringshare_add().
ECORE_CON_API Eina_Bool ecore_con_socks4_remote_exists | ( | const char * | ip, |
int | port, | ||
const char * | username | ||
) |
Finds a SOCKS v4 proxy in the proxy list.
Use this to determine if a SOCKS proxy was previously added by checking the proxy list against the parameters given.
ip | The ip address of the proxy. (NOT DOMAIN NAME. IP ADDRESS.) |
port | The port to connect to on the proxy, or -1 to match the first proxy with ip |
username | The username used for the proxy. (OPTIONAL) |
References EINA_FALSE.
ECORE_CON_API void ecore_con_socks4_remote_del | ( | const char * | ip, |
int | port, | ||
const char * | username | ||
) |
Removes a SOCKS v4 proxy from the proxy list and delete it.
Use this to remove a SOCKS proxy from the proxy list by checking the list against the parameters given. The proxy will then be deleted.
ip | The ip address of the proxy. (NOT DOMAIN NAME. IP ADDRESS.) |
port | The port to connect to on the proxy, or -1 to match the first proxy with ip |
username | The username used for the proxy. (OPTIONAL) |
References eina_list_remove().
ECORE_CON_API Ecore_Con_Socks * ecore_con_socks5_remote_add | ( | const char * | ip, |
int | port, | ||
const char * | username, | ||
const char * | password | ||
) |
Adds a SOCKS v5 proxy to the proxy list.
Use this to create (or return, if previously added) a SOCKS proxy object which can be used by any ecore_con servers.
ip | The ip address of the proxy. (NOT DOMAIN NAME. IP ADDRESS.) |
port | The port to connect to on the proxy. |
username | The username to use for the proxy. (OPTIONAL) |
password | The password to use for the proxy. (OPTIONAL) |
NULL
on failure. References eina_list_append(), and eina_stringshare_add().
ECORE_CON_API Eina_Bool ecore_con_socks5_remote_exists | ( | const char * | ip, |
int | port, | ||
const char * | username, | ||
const char * | password | ||
) |
Finds a SOCKS v5 proxy in the proxy list.
Use this to determine if a SOCKS proxy was previously added by checking the proxy list against the parameters given.
ip | The ip address of the proxy. (NOT DOMAIN NAME. IP ADDRESS.) |
port | The port to connect to on the proxy, or -1 to match the first proxy with ip |
username | The username used for the proxy. (OPTIONAL) |
password | The password used for the proxy. (OPTIONAL) |
References EINA_FALSE.
ECORE_CON_API void ecore_con_socks5_remote_del | ( | const char * | ip, |
int | port, | ||
const char * | username, | ||
const char * | password | ||
) |
Removes a SOCKS v5 proxy from the proxy list and delete it.
Use this to remove a SOCKS proxy from the proxy list by checking the list against the parameters given. The proxy will then be deleted.
ip | The ip address of the proxy. (NOT DOMAIN NAME. IP ADDRESS.) |
port | The port to connect to on the proxy, or -1 to match the first proxy with ip |
username | The username used for the proxy. (OPTIONAL) |
password | The password used for the proxy. (OPTIONAL) |
References eina_list_remove().
ECORE_CON_API void ecore_con_socks_lookup_set | ( | Ecore_Con_Socks * | ecs, |
Eina_Bool | enable | ||
) |
Sets DNS lookup mode on an existing SOCKS proxy.
According to RFC, SOCKS v4 does not require that a proxy perform its own DNS lookups for addresses. SOCKS v4a specifies the protocol for this. SOCKS v5 allows DNS lookups. If you want to enable remote DNS lookup and are sure that your proxy supports it, use this function.
ecs | The proxy object. |
enable | If true, the proxy will perform the dns lookup. |
ECORE_CON_API Eina_Bool ecore_con_socks_lookup_get | ( | Ecore_Con_Socks * | ecs | ) |
Gets DNS lookup mode on an existing SOCKS proxy.
According to RFC, SOCKS v4 does not require that a proxy perform its own DNS lookups for addresses. SOCKS v4a specifies the protocol for this. SOCKS v5 allows DNS lookups. This function returns whether lookups are enabled on a proxy object.
ecs | The proxy object. |
References EINA_FALSE.
ECORE_CON_API void ecore_con_socks_bind_set | ( | Ecore_Con_Socks * | ecs, |
Eina_Bool | is_bind | ||
) |
Enables bind mode on a SOCKS proxy.
Use this function to enable binding a remote port for use with a remote server. For more information, see http://ufasoft.com/doc/socks4_protocol.htm
ecs | The proxy object. |
is_bind | If true, the connection established will be a port binding. |
References EINA_SAFETY_ON_NULL_RETURN.
ECORE_CON_API Eina_Bool ecore_con_socks_bind_get | ( | Ecore_Con_Socks * | ecs | ) |
Returns bind mode of a SOCKS proxy.
Use this function to return bind mode of a proxy (binding a remote port for use with a remote server). For more information, see http://ufasoft.com/doc/socks4_protocol.htm
ecs | The proxy object. |
References EINA_FALSE, and EINA_SAFETY_ON_NULL_RETURN_VAL.
ECORE_CON_API unsigned int ecore_con_socks_version_get | ( | Ecore_Con_Socks * | ecs | ) |
Returns SOCKS version of a SOCKS proxy.
Use this function to return the SOCKS protocol version of a proxy.
ecs | The proxy object. |
0
on error, else 4/5
References EINA_SAFETY_ON_NULL_RETURN_VAL.
ECORE_CON_API void ecore_con_socks_remote_del | ( | Ecore_Con_Socks * | ecs | ) |
Removes a SOCKS v4 proxy from the proxy list and delete it.
Use this to remove a SOCKS proxy from the proxy list by directly deleting the object given.
ecs | The proxy object to delete |
References eina_list_remove(), and EINA_SAFETY_ON_NULL_RETURN.
ECORE_CON_API void ecore_con_socks_apply_once | ( | Ecore_Con_Socks * | ecs | ) |
Sets a proxy object to be used with the next server created with ecore_con_server_connect().
This function sets a proxy for the next ecore_con connection. After the next server is created, the proxy will NEVER be applied again unless explicitly enabled.
ecs | The proxy object |
ECORE_CON_API void ecore_con_socks_apply_always | ( | Ecore_Con_Socks * | ecs | ) |
Sets a proxy object to be used with all servers created with ecore_con_server_connect().
This function sets a proxy for all ecore_con connections. It will always be used.
ecs | The proxy object. |