Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
accept

The function has no current implementation.

An empty declaration is used to prevent errors when legacy application code is used. For recent application use, the accept function can be safer as it has no effect and could be safely removed from any application using it.

Functions

NMI_API sint8 accept (SOCKET sock, struct sockaddr *addr, uint8 *addrlen)
 

NMI_API sint8 accept ( SOCKET  sock,
struct sockaddr addr,
uint8 addrlen 
)
Parameters
[in]sockSocket ID, must hold a non negative value. A negative value will return a socket error SOCK_ERR_INVALID_ARG. Indicating that an invalid argument is passed in.
[in]addrNot used in the current implementation.
[in]addrlenNot used in the current implementation.
Returns
The function returns ZERO for successful operations and a negative value otherwise. The possible error values are:

References MAX_SOCKET, SOCK_ERR_INVALID_ARG, and SOCK_ERR_NO_ERROR.

Referenced by prov_socket_cb(), and socket_cb().