#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. | |
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
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.