class InetLayer
Defined at line 167 of file 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 gen/third_party/openweave-core/src/include/InetLayer/InetLayer.h
INET_ERROR NewRawEndPoint (IPVersionipVer,IPProtocolipProto,RawEndPoint **retEndPoint)
INET_ERROR NewTCPEndPoint (TCPEndPoint ** retEndPoint)
INET_ERROR NewUDPEndPoint (UDPEndPoint ** retEndPoint)
INET_ERROR NewTunEndPoint (TunEndPoint ** retEndPoint)
INET_ERROR ResolveHostAddress (const char *hostName,uint16_thostNameLen,uint8_toptions,uint8_tmaxAddrs,IPAddress *addrArray,DNSResolveCompleteFunctonComplete,void *appState)
INET_ERROR ResolveHostAddress (const char *hostName,uint16_thostNameLen,uint8_tmaxAddrs,IPAddress *addrArray,DNSResolveCompleteFunctonComplete,void *appState)
INET_ERROR ResolveHostAddress (const char *hostName,uint8_tmaxAddrs,IPAddress *addrArray,DNSResolveCompleteFunctonComplete,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 (intselectRes,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::ErroraError)
Enumerations
enum (unnamed)
| Name | Value | Comments |
|---|---|---|
| kState_NotInitialized | 0 |
Not initialized state. |
| kState_Initialized | 1 |
Initialized state. |
| kState_ShutdownInProgress | 2 |
State where Shutdown has been triggered. |
The current state of the InetLayer object.
Defined at line 200 of file 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