Tizen Native API
4.0
|
Functions | |
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. | |
Eina_Bool | ecore_con_socks4_remote_exists (const char *ip, int port, const char *username) |
Finds a SOCKS v4 proxy in the proxy list. | |
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. | |
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. | |
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. | |
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. | |
void | ecore_con_socks_lookup_set (Ecore_Con_Socks *ecs, Eina_Bool enable) |
Sets DNS lookup mode on an existing SOCKS proxy. | |
Eina_Bool | ecore_con_socks_lookup_get (Ecore_Con_Socks *ecs) |
Gets DNS lookup mode on an existing SOCKS proxy. | |
void | ecore_con_socks_bind_set (Ecore_Con_Socks *ecs, Eina_Bool is_bind) |
Enables bind mode on a SOCKS proxy. | |
Eina_Bool | ecore_con_socks_bind_get (Ecore_Con_Socks *ecs) |
Returns bind mode of a SOCKS proxy. | |
unsigned int | ecore_con_socks_version_get (Ecore_Con_Socks *ecs) |
Returns SOCKS version of a SOCKS proxy. | |
void | ecore_con_socks_remote_del (Ecore_Con_Socks *ecs) |
Removes a SOCKS v4 proxy from the proxy list and delete it. | |
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(). | |
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(). | |
Typedefs | |
typedef struct Ecore_Con_Socks | Ecore_Con_Socks |
An object representing a SOCKS proxy.
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. 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) |
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) |
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. 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) |
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) |
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. |
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 |
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. |
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. |
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. |
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. |
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 |
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