Delta / NNN50_WIFI_API

Dependents:   NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more

Embed: (wiki syntax)

« Back to documentation index

Function

Function
[Socket]

Modules

 socketInit
 

The function performs the necessary initializations for the socket library through the following steps:

  • A check made by the global variable gbSocketInit, ensuring that initialization for sockets is performed only once, in-order to prevent reseting the socket instances already created in the global socket array (gastrSockets).

 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.


 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.