AN_UNSET_PROXY
Section: Antinat Programmer's Manual (3)
Updated: 2005-02-25
Index Return to Main Contents
NAME
an_unset_proxy - set a proxy capable socket to not use a proxy
SYNOPSIS
#include <antinat.h>
int an_unset_proxy(ANCONN s);
DESCRIPTION
The an_unset_proxy(3) function is used to remove any proxy server specification. Given that the default value for a newly created socket is derived from the AN_PROXY environment variable, this function should be used if you are certain that a proxy should not be used on a socket. If a proxy should be used on the socket, call either the an_set_proxy(3) or an_set_proxy_url(3) function.
s is a socket previously created with an_new_connection(3).
RETURN VALUE
This call returns AN_ERROR_SUCCESS to indicate successful completion.
ERRORS
- AN_ERROR_INVALIDARG
- The socket handle is invalid.
CONFORMING TO
This function appeared in Antinat 0.90.
SEE ALSO
an_new_connection(3), an_set_proxy(3), an_set_proxy_url(3)
AUTHOR
Malcolm Smith <malxau@users.sourceforge.net>
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- RETURN VALUE
- ERRORS
- CONFORMING TO
- SEE ALSO
- AUTHOR