lrs_accept_connection

Example: lrs_accept_connectionSockets Functions

Accepts a connection on a socket.

int lrs_accept_connection( char *old_socket, char *new_socket );
old_socket A descriptor identifying a socket which is ready for connections.
new_socket A descriptor identifying a new socket to be connected with an existing one.

The lrs_accept_connection function extracts the first connection on the queue of pending connections on old_socket, creates a new socket with the same properties. The original socket remains available for additional connections.

This function is recorded during a Windows Socket session.

Return Values

Windows Sockets Return Values

Parameterization

Parameterization is not applicable to this function.