IOTC Platform  Ver: 4.3.6.2-0-ge1f616e
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
st_P2PTunnelSessionInfo Struct Reference

#include <P2PTunnelServer.h>

Data Fields

int32_t nSID
 P2PTunnel session index.
 
uint8_t nMode
 0: P2P mode, 1: Relay mode, 2: LAN mode
 
uint8_t nNatType
 The remote NAT type.
 
char szRemoteIP [16]
 The IP address of remote site used during this P2PTunnel session.
 
uint16_t nRemotePort
 The port number of remote site used during this P2PTunnel session.
 
uint32_t nVersion
 The remote P2PTunnel API version.
 
int32_t nAuthDataLen
 How many byte of the authentication data.
 
void * pAuthData
 The authentication data buffer, it will be freed by API automatically.
 

Detailed Description

P2PTunnel session info, containing all the information when a P2PTunnel session is established between a tunnel server and a tunnel agent. Users can get this information through use P2PTunnelServer_GetSessionInfo() to register a call back function tunnelSessionInfoCB

Field Documentation

int32_t nAuthDataLen

How many byte of the authentication data.

uint8_t nMode

0: P2P mode, 1: Relay mode, 2: LAN mode

uint8_t nNatType

The remote NAT type.

uint16_t nRemotePort

The port number of remote site used during this P2PTunnel session.

int32_t nSID

P2PTunnel session index.

uint32_t nVersion

The remote P2PTunnel API version.

void* pAuthData

The authentication data buffer, it will be freed by API automatically.

char szRemoteIP[16]

The IP address of remote site used during this P2PTunnel session.


The documentation for this struct was generated from the following file: