ISOCKPORT_ACCEPT()

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.)

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.

Side Effect

None.

Comments

Note that the IPORT_WAIT return value is used instead of
an error return value and an AEE_NET_EWOULDBLOCK error code.

Qualcomm and Brew are trademarks of Qualcomm Incorporated, registered in the United States and other countries. Trademarks of Qualcomm Incorporated are used with permission. Other products and brand names may be trademarks or registered trademarks of their respective owners.