IOTC Platform  Ver: 4.3.6.2-0-ge1f616e
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
st_P2PTunnelSessionInfoEx 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.
 

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_Start_Ex() to register a call back function tunnelSessionInfoExCB

Field Documentation

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.

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: