an_close - close an open socket
#include <antinat.h>
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).
This call returns AN_ERROR_SUCCESS to indicate successful completion.
This function appeared in Antinat 0.70.
an_accept(3), an_connect_tohostname(3), an_connect_tosockaddr(3), an_destroy(3), an_new_connection(3)
Malcolm Smith <malxau@users.sourceforge.net>