AN_CLOSE

Section: Antinat Programmer's Manual (3)
Updated: 2005-01-02
Index Return to Main Contents
 

NAME

an_close - close an open socket  

SYNOPSIS

#include <antinat.h>

int an_close(ANCONN s);  

DESCRIPTION

The an_close(3) function is used close a connection that had previously been created with an_accept(3), an_connect_tohostname(3) or an_connect_tosockaddr(3). Closing the socket does not destroy the handle; it terminates the network connection but the handle remains open to make other connections with. To destroy the handle, use an_destroy(3).

s is a socket previously created with an_new_connection(3), and connected using an_accept(3), an_connect_tohostname(3) or an_connect_tosockaddr(3).  

RETURN VALUE

This call returns AN_ERROR_SUCCESS to indicate successful completion.  

ERRORS

AN_ERROR_INVALIDARG
The connection supplied is not a valid connection.
AN_ERROR_NOTSUPPORTED
The proxy type or address type is not supported.
 

SEE ALSO

an_accept(3), an_connect_tohostname(3), an_connect_tosockaddr(3), an_destroy(3), an_new_connection(3)  

AUTHOR

Malcolm Smith <malxau@users.sourceforge.net>


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
AUTHOR

Time: 14:19:43 GMT, January 09, 2005