From cf7c06297d04bade9cd04c056f9ed510e64dd7bd Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 5 Aug 2020 03:39:22 +0200 Subject: code -> fw --- code/fe310/eos/sock.h | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 code/fe310/eos/sock.h (limited to 'code/fe310/eos/sock.h') diff --git a/code/fe310/eos/sock.h b/code/fe310/eos/sock.h deleted file mode 100644 index d647381..0000000 --- a/code/fe310/eos/sock.h +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include "event.h" - -#define EOS_SOCK_MTYPE_PKT 0 -#define EOS_SOCK_MTYPE_OPEN_DGRAM 1 -#define EOS_SOCK_MTYPE_CLOSE 127 - -#define EOS_SOCK_MAX_SOCK 2 - -#define EOS_SOCK_SIZE_UDP_HDR 8 - -#define EOS_IPv4_ADDR_SIZE 4 - -typedef struct EOSNetAddr { - unsigned char host[EOS_IPv4_ADDR_SIZE]; - uint16_t port; -} EOSNetAddr; - -void eos_sock_init(void); -void eos_sock_set_handler(unsigned char sock, eos_evt_handler_t handler); - -int eos_sock_open_udp(void); -void eos_sock_close(unsigned char sock); -int eos_sock_sendto(unsigned char sock, unsigned char *buffer, uint16_t size, unsigned char more, EOSNetAddr *addr); -void eos_sock_getfrom(unsigned char *buffer, EOSNetAddr *addr); -- cgit v1.2.3