Brew MP 1.0.2
The accept function is used on a listening TCP socket to retrieve
an incoming connection from the backlog queue (see ISOCKET_Listen()).
The first backlog queued connection is removed from the queue, and
associated with a new socket (as if you called OEMSocket_Open). The
newly created socket is in the connected state. The listening socket
is unaffected and the queue size is maintained (i.e. there is no need
to call listen again.)
int ISOCKET_Accept(ISocket * ps, ISocket ** pps);
AEE_NET_SUCCESS: A newly accepted socket has been returned via pps.
AEE_NET_WOULDBLOCK: No new sockets are available now; try again later.
AEE_NET_ERROR: The operation failed. The specific error code can
be retrieved by calling ISOCKET_GetLastError().