blob: 9d76d1b20b0e23b27e316eba7ca735dc1b947eb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdint.h>
#define EOS_IPv4_ADDR_SIZE 4
typedef struct EOSNetAddr {
unsigned char host[EOS_IPv4_ADDR_SIZE];
uint16_t port;
} EOSNetAddr;
void eos_net_init(void);
void eos_net_connect(char *ssid, char *password);
void eos_net_disconnect(void);
ssize_t eos_net_send(void *msg, size_t msg_size, EOSNetAddr *addr);
|