IOTC Platform: st_SInfoEx Struct Reference

| IOTC Platform Ver: 2.1.0.25 |

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

`#include <IOTCAPIs.h>`

## Data Fields

unsigned int | size
unsigned char | Mode
| 0: P2P mode, 1: Relay mode, 2: LAN mode
char | CorD
| 0: As a Client, 1: As a Device
char | UID [21]
| The UID of the device.
char | RemoteIP [17]
| The IP address of remote site used during this IOTC session.
unsigned short | RemotePort
| The port number of remote site used during this IOTC session.
unsigned int | TX_Packetcount
| The total packets sent from the device and the client during this IOTC session.
unsigned int | RX_Packetcount
| The total packets received in the device and the client during this IOTC session.
unsigned int | IOTCVersion
| The IOTC version.
unsigned short | VID
| The Vendor ID, part of VPG mechanism.
unsigned short | PID
| The Product ID, part of VPG mechanism.
unsigned short | GID
| The Group ID, part of VPG mechanism.
unsigned char | isSecure
| 0: The IOTC session is in non-secure mode, 1: The IOTC session is in secure mode
unsigned char | LocalNatType
| The local NAT type, 0: Unknown type, 1: Type 1, 2: Type 2, 3: Type 3, 10: TCP only.
unsigned char | RemoteNatType
| The remote NAT type, 0: Unknown type, 1: Type 1, 2: Type 2, 3: Type 3, 10: TCP only.
unsigned char | RelayType
| 0: Not Relay, 1: UDP Relay, 2: TCP Relay
unsigned int | NetState
| If no UDP packet is ever received, the first bit of value is 1, otherwise 0.

## Detailed Description

IOTC session info, containing all the information when a IOTC session is established between a device and a client. Users can use IOTC_Session_Check_Ex() to get IOTC session information.

## Field Documentation

char CorD

0: As a Client, 1: As a Device

unsigned short GID

The Group ID, part of VPG mechanism.

unsigned int IOTCVersion

The IOTC version.

unsigned char isSecure

0: The IOTC session is in non-secure mode, 1: The IOTC session is in secure mode

unsigned char LocalNatType

The local NAT type, 0: Unknown type, 1: Type 1, 2: Type 2, 3: Type 3, 10: TCP only.

unsigned char Mode

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

unsigned int NetState

If no UDP packet is ever received, the first bit of value is 1, otherwise 0.

unsigned short PID

The Product ID, part of VPG mechanism.

unsigned char RelayType

0: Not Relay, 1: UDP Relay, 2: TCP Relay

char RemoteIP[17]

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

unsigned char RemoteNatType

The remote NAT type, 0: Unknown type, 1: Type 1, 2: Type 2, 3: Type 3, 10: TCP only.

unsigned short RemotePort

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

unsigned int RX_Packetcount

The total packets received in the device and the client during this IOTC session.

unsigned int size

unsigned int TX_Packetcount

The total packets sent from the device and the client during this IOTC session.

char UID[21]

The UID of the device.

unsigned short VID

The Vendor ID, part of VPG mechanism.

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

- IOTCAPIs.h