Amazon Kinesis Webrtc C SDK
Loading...
Searching...
No Matches
NatBehaviorDiscovery.c File Reference
#include "../Include_i.h"
Include dependency graph for NatBehaviorDiscovery.c:

Macros

#define LOG_CLASS   "NatTypeDiscovery"

Functions

STATUS natTestIncomingDataHandler (UINT64 customData, PSocketConnection pSocketConnection, PBYTE pBuffer, UINT32 bufferLen, PKvsIpAddress pSrc, PKvsIpAddress pDest)
STATUS executeNatTest (PStunPacket bindingRequest, PKvsIpAddress pDestAddr, PSocketConnection pSocketConnection, UINT32 testIndex, PNatTestData pData, PStunPacket *ppTestReponse)
STATUS getMappAddressAttribute (PStunPacket pBindingResponse, PStunAttributeAddress *ppStunAttributeAddress)
STATUS discoverNatMappingBehavior (PIceServer pStunServer, PNatTestData data, PSocketConnection pSocketConnection, NAT_BEHAVIOR *pNatMappingBehavior)
STATUS discoverNatFilteringBehavior (PIceServer pStunServer, PNatTestData data, PSocketConnection pSocketConnection, NAT_BEHAVIOR *pNatFilteringBehavior)
STATUS discoverNatBehavior (PCHAR stunServer, NAT_BEHAVIOR *pNatMappingBehavior, NAT_BEHAVIOR *pNatFilteringBehavior, IceSetInterfaceFilterFunc filterFunc, UINT64 filterFuncCustomData)
 Use the process described in https://tools.ietf.org/html/rfc5780#section-4.3 to discover NAT behavior.
PCHAR getNatBehaviorStr (NAT_BEHAVIOR natBehavior)
 Return the string representation for each NAT_BEHAVIOR enum.

Macro Definition Documentation

◆ LOG_CLASS

#define LOG_CLASS   "NatTypeDiscovery"

Function Documentation

◆ discoverNatFilteringBehavior()

STATUS discoverNatFilteringBehavior ( PIceServer pStunServer,
PNatTestData data,
PSocketConnection pSocketConnection,
NAT_BEHAVIOR * pNatFilteringBehavior )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ discoverNatMappingBehavior()

STATUS discoverNatMappingBehavior ( PIceServer pStunServer,
PNatTestData data,
PSocketConnection pSocketConnection,
NAT_BEHAVIOR * pNatMappingBehavior )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ executeNatTest()

STATUS executeNatTest ( PStunPacket bindingRequest,
PKvsIpAddress pDestAddr,
PSocketConnection pSocketConnection,
UINT32 testIndex,
PNatTestData pData,
PStunPacket * ppTestReponse )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMappAddressAttribute()

STATUS getMappAddressAttribute ( PStunPacket pBindingResponse,
PStunAttributeAddress * ppStunAttributeAddress )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ natTestIncomingDataHandler()

STATUS natTestIncomingDataHandler ( UINT64 customData,
PSocketConnection pSocketConnection,
PBYTE pBuffer,
UINT32 bufferLen,
PKvsIpAddress pSrc,
PKvsIpAddress pDest )
Here is the call graph for this function:
Here is the caller graph for this function: