Microchip® Advanced Software Framework

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

Modules

 socketInit
 The function performs the necessary initializations for the socket library through the following steps:
 
 socketDeInit
 
 socketState
 
 registerSocketCallback
 Register two callback functions one for asynchronous socket events and the other one for DNS callback registering function.
 
 socket
 Synchronous socket allocation function based on the specified socket type.
 
 bind
 Asynchronous bind function associates the provided address and local port to the socket.
 
 listen
 After successful socket binding to an IP address and port on the system, start listening on a passive socket for incoming connections.
 
 accept
 The function has no current implementation.
 
 connect
 
Establishes a TCP connection with a remote server.

 
 secure
 
Converts an (insecure) TCP connection with a remote server into a secure TLS-over-TCP connection.

 
 recv
 
An asynchronous receive function, used to retrieve data from a TCP stream.

 
 recvfrom
 Receives data from a UDP Socket.
 
 send
 Asynchronous sending function, used to send data on a TCP/UDP socket.
 
 sendto
 Asynchronous sending function, used to send data on a UDP socket.
 
 close
 Synchronous close function, releases all the socket assigned resources.
 
 nmi_inet_addr
 Synchronous function which returns a BSD socket compliant Internet Protocol (IPv4) socket address.
 
 gethostbyname
 Asynchronous DNS resolving function.
 
 sslEnableCertExpirationCheck
 Configure the behavior of the SSL Library for Certificate Expiry Validation.
 
 setsockopt
 The setsockopt() function shall set the option specified by the option_name argument, at the protocol level specified by the level argument, to the value pointed to by the option_value argument for the socket specified by the socket argument.
 
 getsockopt
 Get socket options retrieves This Function isn't implemented yet but this is the form that will be released later.
 
 m2m_ping_req
 
The function sends ping request to the given IP Address.