an_socks4_enablesocks4a - use server-side name resolution on SOCKS4 connections
#include <antinat.h>
int an_socks4_enablesocks4a(ANCONN s);
The an_socks4a_enablesocks4a(3) function is used to allow connections to SOCKS4 servers to leave hostname resolution to the server. Note that this is not supported in native SOCKS4, but by way of an extension, SOCKS4A. For this reason, this feature is disabled by default, unless this function is called. This function will only affect subsequent calls to the an_connect_tohostname(3) or an_bind_tohostname(3) functions; it will have no effect on the an_connect_tosockaddr(3) or an_bind_tosockaddr(3) functions. Enabling SOCKS4A where the server doesn't support it will result in connection failures.
s is a socket previously created with an_new_connection(3).
This call returns AN_ERROR_SUCCESS to indicate successful completion.
This function appeared in Antinat 0.91.
an_bind_tohostname(3), an_bind_tosockaddr(3), an_connect_tohostname(3), an_connect_tosockaddr(3), an_new_connection(3)
Malcolm Smith <malxau@users.sourceforge.net>