Amazon Kinesis Webrtc C SDK
NatBehaviorDiscovery.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NatTestData
 

Macros

#define DEFAULT_NAT_TEST_MAX_BINDING_REQUEST_COUNT   5
 
#define DEFAULT_TEST_NAT_TEST_RESPONSE_WAIT_TIME   500 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND
 
#define NAT_BEHAVIOR_DISCOVER_PROCESS_TEST_COUNT   3
 
#define NAT_BEHAVIOR_NONE_STR   (PCHAR) "NONE"
 
#define NAT_BEHAVIOR_NOT_BEHIND_ANY_NAT_STR   (PCHAR) "NOT_BEHIND_ANY_NAT"
 
#define NAT_BEHAVIOR_NO_UDP_CONNECTIVITY_STR   (PCHAR) "NO_UDP_CONNECTIVITY"
 
#define NAT_BEHAVIOR_ENDPOINT_INDEPENDENT_STR   (PCHAR) "ENDPOINT_INDEPENDENT"
 
#define NAT_BEHAVIOR_ADDRESS_DEPENDENT_STR   (PCHAR) "ADDRESS_DEPENDENT"
 
#define NAT_BEHAVIOR_PORT_DEPENDENT_STR   (PCHAR) "PORT_DEPENDENT"
 

Typedefs

typedef struct NatTestDataPNatTestData
 

Functions

STATUS natTestIncomingDataHandler (UINT64, PSocketConnection, PBYTE, UINT32, PKvsIpAddress, PKvsIpAddress)
 
STATUS executeNatTest (PStunPacket, PKvsIpAddress, PSocketConnection, UINT32, PNatTestData, PStunPacket *)
 
STATUS getMappAddressAttribute (PStunPacket, PStunAttributeAddress *)
 
STATUS discoverNatMappingBehavior (PIceServer, PNatTestData, PSocketConnection, NAT_BEHAVIOR *)
 
STATUS discoverNatFilteringBehavior (PIceServer, PNatTestData, PSocketConnection, NAT_BEHAVIOR *)
 

Macro Definition Documentation

◆ DEFAULT_NAT_TEST_MAX_BINDING_REQUEST_COUNT

#define DEFAULT_NAT_TEST_MAX_BINDING_REQUEST_COUNT   5

◆ DEFAULT_TEST_NAT_TEST_RESPONSE_WAIT_TIME

#define DEFAULT_TEST_NAT_TEST_RESPONSE_WAIT_TIME   500 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND

◆ NAT_BEHAVIOR_ADDRESS_DEPENDENT_STR

#define NAT_BEHAVIOR_ADDRESS_DEPENDENT_STR   (PCHAR) "ADDRESS_DEPENDENT"

◆ NAT_BEHAVIOR_DISCOVER_PROCESS_TEST_COUNT

#define NAT_BEHAVIOR_DISCOVER_PROCESS_TEST_COUNT   3

◆ NAT_BEHAVIOR_ENDPOINT_INDEPENDENT_STR

#define NAT_BEHAVIOR_ENDPOINT_INDEPENDENT_STR   (PCHAR) "ENDPOINT_INDEPENDENT"

◆ NAT_BEHAVIOR_NO_UDP_CONNECTIVITY_STR

#define NAT_BEHAVIOR_NO_UDP_CONNECTIVITY_STR   (PCHAR) "NO_UDP_CONNECTIVITY"

◆ NAT_BEHAVIOR_NONE_STR

#define NAT_BEHAVIOR_NONE_STR   (PCHAR) "NONE"

◆ NAT_BEHAVIOR_NOT_BEHIND_ANY_NAT_STR

#define NAT_BEHAVIOR_NOT_BEHIND_ANY_NAT_STR   (PCHAR) "NOT_BEHIND_ANY_NAT"

◆ NAT_BEHAVIOR_PORT_DEPENDENT_STR

#define NAT_BEHAVIOR_PORT_DEPENDENT_STR   (PCHAR) "PORT_DEPENDENT"

Typedef Documentation

◆ PNatTestData

typedef struct NatTestData * PNatTestData

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: