diff options
author | Uros Majstorovic <majstor@majstor.org> | 2017-05-03 21:10:08 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2017-05-03 21:10:08 +0200 |
commit | 25de5e761daab8b897a4f09ff8503e6f43c299f9 (patch) | |
tree | a9a1c185c7f89d67f9250e42b2aa53eefc9a6770 /code/posix/transport.h |
initial commit
Diffstat (limited to 'code/posix/transport.h')
-rw-r--r-- | code/posix/transport.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 <stdint.h> + +#define ECP_IPv4_ADDR_SIZE 4 + +typedef int ECPNetSock; +typedef struct ECPNetAddr { + unsigned char host[ECP_IPv4_ADDR_SIZE]; + uint16_t port; +} ECPNetAddr; + |