Brew MP 1.0.2
The accept function is used on listening sockets to respond when
AEE_NET_READ_EVENT is asserted. The first backlog queued connection is
removed from the queue, and bound to a new connected socket. 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.)
[in] Pointer to the listening ISockPort interface
[out] Pointer to the newly accepted ISockPort interface
- AEE_SUCCESS: a newly accepted socket has been returned via pps
IPORT_WAIT: (AEE_AF_INET and AEE_AF_INET6 only) No new sockets are
available now; try again later (see ISockPort_Readable())
AEE_NET_EBADF : socket is not open
AEE_NET_EFAULT : invalid pps pointer
AEE_NET_EINVAL : socket is not listening
AEE_NET_EOPNOTSUPP : The socket is not of type SOCK_STREAM
AEE_NET_ENETNONET : network subsystem unavailable for some unknown reason
AEE_NET_ENETINPROGRESS : network subsystem establishment currently in progress
AEE_NET_ENETCLOSEINPROGRESS: network subsystem close in progress.
AEE_NET_ENOMEM : not enough memory to establish connection.
AEE_NET_EMFILE : Not enough resources to complete this operation
(too many sockets in use)
Other error codes are also possible.