Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ksnTCPProxyHeader Struct Reference

TCP Proxy packet(message) header structure. More...

#include <tcp_proxy.h>

Data Fields

uint8_t checksum
 Whole checksum. More...
 
unsigned int version: 4
 Protocol version number. More...
 
unsigned int command: 4
 Protocol command. More...
 
uint16_t port
 UDP peers port number. More...
 
uint16_t packet_length
 UDP packet length. More...
 
uint8_t addr_length
 UDP peers address string length included trailing zero. More...
 
uint8_t packet_checksum
 Header checksum. More...
 

Detailed Description

TCP Proxy packet(message) header structure.

Field Documentation

uint8_t ksnTCPProxyHeader::addr_length

UDP peers address string length included trailing zero.

Referenced by _cmd_tcpp_read_cb(), ksnTCPProxyPackageCreate(), ksnTCPProxyPackageProcess(), teo_recvfrom(), and test_5_2().

uint8_t ksnTCPProxyHeader::checksum
unsigned int ksnTCPProxyHeader::command

Protocol command.

Referenced by _cmd_tcpp_read_cb(), and ksnTCPProxyPackageCreate().

uint8_t ksnTCPProxyHeader::packet_checksum

Header checksum.

Referenced by ksnTCPProxyPackageCreate(), and ksnTCPProxyPackageProcess().

uint16_t ksnTCPProxyHeader::packet_length
uint16_t ksnTCPProxyHeader::port
unsigned int ksnTCPProxyHeader::version

Protocol version number.

Referenced by ksnTCPProxyPackageCreate().


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