Share this page

# lrs_accept_connection

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.

## Return Values

Windows Sockets Return Values

## Parameterization

Parameterization is not applicable to this function.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: