lrs_close_socket

Example: lrs_close_socketSockets Functions

Closes an open socket.

int lrs_close_socket( char *s_desc );
s_desc A descriptor identifying a socket.

The lrs_close_socket function closes a socket by releasing the specified socket descriptor. Further references to the socket will result in the error WSAENOTSOCK. If this is the last reference to the underlying socket, the associated naming information and queued data are discarded. Note that for a TCP socket, the lrs_close_socket function flushes all data which was not yet sent.

This function is recorded during a Windows Socket session.

Return Values

Windows Sockets Return Values

Parameterization

You cannot use standard parameterization for any arguments in this function.