nl::Inet::AsyncDNSResolverSockets
Stay organized with collections
Save and categorize content based on your preferences.
#include <src/inet/AsyncDNSResolverSockets.h>
This is an internal class to InetLayer that provides helper APIs for Asynchronous Domain Name System (DNS) resolution in InetLayer.
Summary
There is no public interface available for the application layer.
Public functions |
|
---|---|
Cancel(DNSResolver & resolver)
|
Cancel an outstanding DNS query that may still be active.
|
EnqueueRequest(DNSResolver & resolver)
|
Enqueue a DNSResolver object for asynchronous IP address resolution of a specified hostname.
|
Init(InetLayer *inet)
|
The explicit initializer for the AsynchronousDNSResolverSockets class.
|
PrepareDNSResolver(DNSResolver & resolver, const char *hostName, uint16_t hostNameLen, uint8_t options, uint8_t maxAddrs, IPAddress *addrArray, DNSResolver::OnResolveCompleteFunct onComplete, void *appState)
|
This method prepares a DNSResolver object prior to asynchronous resolution.
|
Shutdown(void)
|
This is the explicit deinitializer of the AsyncDNSResolverSockets class and it takes care of shutting the threads down and destroying the mutex and semaphore variables.
|
Public functions
Cancel
INET_ERROR Cancel( DNSResolver & resolver )
Cancel an outstanding DNS query that may still be active.
Details | |||
---|---|---|---|
Parameters |
|
EnqueueRequest
INET_ERROR EnqueueRequest( DNSResolver & resolver )
Enqueue a DNSResolver object for asynchronous IP address resolution of a specified hostname.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
Init
INET_ERROR Init( InetLayer *inet )
The explicit initializer for the AsynchronousDNSResolverSockets class.
This initializes the mutex and semaphore variables and creates the threads for handling the asynchronous DNS resolution.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
PrepareDNSResolver
INET_ERROR PrepareDNSResolver( DNSResolver & resolver, const char *hostName, uint16_t hostNameLen, uint8_t options, uint8_t maxAddrs, IPAddress *addrArray, DNSResolver::OnResolveCompleteFunct onComplete, void *appState )
This method prepares a DNSResolver object prior to asynchronous resolution.
Details | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||||||||
Return Values |
|
Shutdown
INET_ERROR Shutdown( void )
This is the explicit deinitializer of the AsyncDNSResolverSockets class and it takes care of shutting the threads down and destroying the mutex and semaphore variables.
Details | |||||
---|---|---|---|---|---|
Return Values |
|