Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
commands_creator.h
Go to the documentation of this file.
1 
7 #ifndef COMMANDS_CREATOR_H
8 #define COMMANDS_CREATOR_H
9 
10 #include <stdint.h>
11 #include <stdlib.h>
12 
13 #include "ev_mgr.h"
14 
15 #pragma pack(push)
16 #pragma pack(1)
17 typedef struct connect_r_packet {
18  uint32_t port;
19  uint8_t ip_counts;
20  char type[64];
21  char ips[];
23 
24  #pragma pack(pop)
25 
26 uint8_t* createCmdConnectRPacketUdp(ksnetEvMgrClass *event_manager, size_t *size_out);
27 uint8_t* createCmdConnectRPacketTcp(ksnetEvMgrClass *event_manager, size_t *size_out);
28 uint8_t* createCmdConnectPacket(ksnetEvMgrClass *event_manager, char *name, char *addr, uint32_t port, size_t *size_out);
29 uint8_t* createCmdResendPacket(char *to, uint8_t cmd, void *data, size_t data_len, size_t *size_out);
30 #endif
struct connect_r_packet connect_r_packet_t
uint8_t ip_counts
Definition: commands_creator.h:19
const char data[]
Make it with: gcc -o post-callback post-callback.c -lcurl.
Definition: post-callback.c:23
uint8_t * createCmdResendPacket(char *to, uint8_t cmd, void *data, size_t data_len, size_t *size_out)
Definition: commands_creator.c:90
uint32_t port
Definition: commands_creator.h:18
char ips[]
Definition: commands_creator.h:21
Definition: commands_creator.h:17
KSNet event manager functions data.
Definition: ev_mgr.h:245
uint8_t * createCmdConnectPacket(ksnetEvMgrClass *event_manager, char *name, char *addr, uint32_t port, size_t *size_out)
Definition: commands_creator.c:65
uint8_t * createCmdConnectRPacketTcp(ksnetEvMgrClass *event_manager, size_t *size_out)
Definition: commands_creator.c:53
uint8_t * createCmdConnectRPacketUdp(ksnetEvMgrClass *event_manager, size_t *size_out)
Definition: commands_creator.c:9
char type[64]
Definition: commands_creator.h:20