forked from lerwys/fcs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfcs_client.h
More file actions
40 lines (32 loc) · 716 Bytes
/
fcs_client.h
File metadata and controls
40 lines (32 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _FCS_CLIENT_H_
#define _FCS_CLIENT_H_
#if defined( __GNUC__)
#define PACKED __attribute__ ((packed))
#else
#error "Unsupported compiler?"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <inttypes.h>
#include <arpa/inet.h>
#include <inttypes.h>
#include <netinet/tcp.h>
#include <bsmp/client.h>
struct _recv_pkt_t {
uint8_t data[BSMP_MAX_MESSAGE];
};
typedef struct _recv_pkt_t recv_pkt_t;
struct _send_pkt_t {
uint8_t data[BSMP_MAX_MESSAGE];
};
typedef struct _send_pkt_t send_pkt_t;
#endif