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

KSNet core received data structure. More...

#include <net_com.h>

Data Fields

char * addr
 Remote peer IP address. More...
 
int port
 Remote peer port. More...
 
int mtu
 Remote mtu. More...
 
char * from
 Remote peer name. More...
 
uint8_t from_len
 Remote peer name length. More...
 
uint8_t cmd
 Command ID. More...
 
void * data
 Received data. More...
 
size_t data_len
 Received data length. More...
 
void * raw_data
 Received packet data. More...
 
size_t raw_data_len
 Received packet length. More...
 
ksnet_arp_data_ext * arp
 Pointer to extended ARP Table data. More...
 
int l0_f
 L0 command flag (from set to l0 client name) More...
 

Detailed Description

KSNet core received data structure.

Examples:
teoack.c, teoackm.c, teodb_ex.c, teolarge.c, teosend.c, teosscr.c, and teostream.c.

Field Documentation

ksnet_arp_data_ext* ksnCorePacketData::arp

Pointer to extended ARP Table data.

Referenced by cmd_subscribe_cb(), ksnCoreCheckNewPeer(), ksnCoreProcessPacket(), and ksnSplitCombine().

int ksnCorePacketData::l0_f

L0 command flag (from set to l0 client name)

Referenced by cmd_l0_cb(), cmd_subscribe_cb(), ksnLNullSendEchoToL0A(), sendCmdAnswerToBinaryA(), teo::Teonet::sendToL0A(), and teoAsyncTest().

int ksnCorePacketData::mtu

Remote mtu.

Referenced by ksnSplitCombine().

void* ksnCorePacketData::raw_data

Received packet data.

Referenced by ksnCoreParsePacket(), and ksnSplitCombine().

size_t ksnCorePacketData::raw_data_len

Received packet length.

Referenced by ksnCoreParsePacket(), and ksnSplitCombine().


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