class InetLayer

Defined at line 167 of file x64-shared/gen/third_party/openweave-core/src/include/InetLayer/InetLayer.h

This provides access to Internet services, including timers,

Domain Name System (DNS) resolution, TCP network transport, UDP

network transport, and raw network transport, for a single

thread.

For BSD/POSIX Sockets, event readiness notification is handled

via file descriptors and a traditional poll / select

implementation on the platform adaptation.

For LwIP, event readiness notification is handle via events /

messages and platform- and system-specific hooks for the event /

message system.

Public Members

 State
 mSocketCloseHandler

Public Methods

void InetLayer ()
INET_ERROR Init (Weave::System::Layer & aSystemLayer, void * aContext)
INET_ERROR Shutdown ()
Weave::System::Layer * SystemLayer ()

Defined at line 427 of file x64-shared/gen/third_party/openweave-core/src/include/InetLayer/InetLayer.h

INET_ERROR NewRawEndPoint (IPVersion ipVer, IPProtocol ipProto, RawEndPoint ** retEndPoint)
INET_ERROR NewTCPEndPoint (TCPEndPoint ** retEndPoint)
INET_ERROR NewUDPEndPoint (UDPEndPoint ** retEndPoint)
INET_ERROR NewTunEndPoint (TunEndPoint ** retEndPoint)
INET_ERROR ResolveHostAddress (const char * hostName, uint16_t hostNameLen, uint8_t options, uint8_t maxAddrs, IPAddress * addrArray, DNSResolveCompleteFunct onComplete, void * appState)
INET_ERROR ResolveHostAddress (const char * hostName, uint16_t hostNameLen, uint8_t maxAddrs, IPAddress * addrArray, DNSResolveCompleteFunct onComplete, void * appState)
INET_ERROR ResolveHostAddress (const char * hostName, uint8_t maxAddrs, IPAddress * addrArray, DNSResolveCompleteFunct onComplete, void * appState)
void CancelResolveHostAddress (DNSResolveCompleteFunct onComplete, void * appState)
INET_ERROR GetInterfaceFromAddr (const IPAddress & addr, InterfaceId & intfId)
INET_ERROR GetLinkLocalAddr (InterfaceId link, IPAddress * llAddr)
bool MatchLocalIPv6Subnet (const IPAddress & addr)
void PrepareSelect (int & nfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, struct timeval & sleepTime)
void HandleSelectResult (int selectRes, fd_set * readfds, fd_set * writefds, fd_set * exceptfds)
void SetPlatformSocketCloseHandler (PlatformSocketCloseHandler handler, intptr_t args)
void HandlePlatformSocketClose (int fd)
void UpdateSnapshot (nl::Weave::System::Stats::Snapshot & aSnapshot)
void * GetPlatformData ()
void SetPlatformData (void * aPlatformData)
void HandleTCPInactivityTimer (Weave::System::Layer * aSystemLayer, void * aAppState, Weave::System::Error aError)

Enumerations

enum 
Name Value
kState_NotInitialized 0
kState_Initialized 1
kState_ShutdownInProgress 2

The current state of the InetLayer object.

Defined at line 200 of file x64-shared/gen/third_party/openweave-core/src/include/InetLayer/InetLayer.h

Records

Friends

void InetLayer (Inet::InetLayer * aLayer, void * aContext, INET_ERROR anError)
INET_ERROR InetLayer (Inet::InetLayer * aLayer, void * aContext)
void InetLayer (Inet::InetLayer * aLayer, void * aContext, INET_ERROR anError)
INET_ERROR InetLayer (Inet::InetLayer * aLayer, void * aContext)
class AsyncDNSResolverSockets
class TunEndPoint
class UDPEndPoint
class TCPEndPoint
class RawEndPoint
class DNSResolver