6.2.3.2 registerSocketCallback
The registerSocketCallback function allows the host MCU
application to provide the
ATWINC15x0 sockets with application-defined
event callbacks for socket operations. The API is a synchronous API. The API registers
the following callbacks:
- The socket event callback
- The DNS resolve callback
The socket event callback is an application-defined function that is called by the ATWINC15x0 socket API whenever a socket event occurs. Within this handler, the host MCU application must provide an application-defined logic that handles the events of interest.
The DNS resolve event handler is the application-defined function that is
called by the
ATWINC15x0 socket API to return the results
of gethostbyname. By implication, this only occurs after the host MCU
application has called the gethostbyname function. If successful, the
callback provides the IP address for the desired domain name.
