From 25de5e761daab8b897a4f09ff8503e6f43c299f9 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 3 May 2017 21:10:08 +0200 Subject: initial commit --- code/posix/transport.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 code/posix/transport.h (limited to 'code/posix/transport.h') diff --git a/code/posix/transport.h b/code/posix/transport.h new file mode 100644 index 0000000..c35e13e --- /dev/null +++ b/code/posix/transport.h @@ -0,0 +1,10 @@ +#include + +#define ECP_IPv4_ADDR_SIZE 4 + +typedef int ECPNetSock; +typedef struct ECPNetAddr { + unsigned char host[ECP_IPv4_ADDR_SIZE]; + uint16_t port; +} ECPNetAddr; + -- cgit v1.2.3