16 #define MAX_DATA_LEN 448
17 #define MAX_PACKET_LEN (5*1024*1024)
18 #define LAST_PACKET_FLAG 0x8000
KSNet split class data.
Definition: net_split.h:23
void * data_save
Allocated data pointer.
Definition: net_split.h:29
KSNet core received data structure.
Definition: net_com.h:107
ksnCommandClass * kco
Definition: net_split.h:25
struct ksnSplitClass ksnSplitClass
KSNet split class data.
#define kc
Definition: hotkeys.c:72
ksnSplitClass * ksnSplitInit(ksnCommandClass *kc)
Initialize split module.
Definition: net_split.c:27
KSNet command class data.
Definition: net_com.h:95
void ** ksnSplitPacket(ksnSplitClass *ks, uint8_t cmd, void *packet, size_t packet_len, int *num_subpackets)
Split large packet to array of small.
Definition: net_split.c:61
void ksnSplitDestroy(ksnSplitClass *ks)
Destroy split module.
Definition: net_split.c:42
ksnCorePacketData * ksnSplitCombine(ksnSplitClass *ks, ksnCorePacketData *rd)
Combine packets to one large packet.
Definition: net_split.c:111
uint16_t packet_number
Large packet number.
Definition: net_split.h:27
void ksnSplitFreeRds(ksnSplitClass *ks, ksnCorePacketData *rd)
Free ksnCorePacketData created in ksnSplitCombine function.
Definition: net_split.c:232
double last_added
Last time when record added to map.
Definition: net_split.h:28
PblMap * map
Hash Map to store splitted packets.
Definition: net_split.h:26