noPollConn* nopoll_conn_accept_socket ( noPollCtx ctx,
noPollConn listener,
NOPOLL_SOCKET  session 
)

Allows to accept a new incoming WebSocket connection on the provided listener but with a socket already accepted.

Parameters
ctxThe context where the operation will take place.
listenerThe WebSocket listener that is receiving a new incoming connection.
sessionAn already accepted socket from the provided listener.
Returns
A newly created noPollConn reference or NULL if it fails.

References nopoll_conn_accept_complete(), NOPOLL_LEVEL_CRITICAL, NOPOLL_LEVEL_DEBUG, nopoll_listener_from_socket(), and nopoll_return_val_if_fail.

Referenced by nopoll_conn_accept().