IOTC Platform: st_P2PTunnelSessionInfo Struct Reference

| IOTC Platform Ver: 2.1.0.25 |

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Fields
st_P2PTunnelSessionInfo Struct Reference

`#include <P2PTunnelAPIs.h>`

## Data Fields

int | nSID
| P2PTunnel session index.
unsigned char | nMode
| 0: P2P mode, 1: Relay mode, 2: LAN mode
unsigned char | nNatType
| The remote NAT type.
char | szRemoteIP [16]
| The IP address of remote site used during this P2PTunnel session.
unsigned short | nRemotePort
| The port number of remote site used during this P2PTunnel session.
unsigned int | nVersion
| The remote P2PTunnel API version.
int | 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

int nAuthDataLen

How many byte of the authentication data.

unsigned char nMode

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

unsigned char nNatType

The remote NAT type.

unsigned short nRemotePort

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

int nSID

P2PTunnel session index.

unsigned int 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:

- P2PTunnelAPIs.h