Open topic with navigation
|Example: lrs_accept_connection||Sockets 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.
Parameterization is not applicable to this function.