ServerSocket_accept

Function ServerSocket_accept 

Source
pub unsafe extern "C" fn ServerSocket_accept(
    self_: ServerSocket,
) -> Socket
Expand description

accept a new incoming connection (non-blocking)

This function shall accept a new incoming connection. It is non-blocking and has to return NULL if no new connection is pending.

Implementation of this function is MANDATORY if server functionality is required.

NOTE: The behaviour of this function changed with version 0.8!

§Arguments

  • self - server socket instance

§Returns

handle of the new connection socket or NULL if no new connection is available