summaryrefslogtreecommitdiff
path: root/ecp/src/platform/posix/transport.h
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/src/platform/posix/transport.h')
-rw-r--r--ecp/src/platform/posix/transport.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ecp/src/platform/posix/transport.h b/ecp/src/platform/posix/transport.h
index 155bd9c..736dbc1 100644
--- a/ecp/src/platform/posix/transport.h
+++ b/ecp/src/platform/posix/transport.h
@@ -1,7 +1,9 @@
#define ECP_IPv4_ADDR_SIZE 4
-typedef int ECPNetSock;
-typedef struct ECPNetAddr {
+struct ECPNetAddr {
unsigned char host[ECP_IPv4_ADDR_SIZE];
uint16_t port;
-} ECPNetAddr;
+};
+
+typedef struct ECPNetAddr ecp_tr_addr_t;
+typedef int ecp_tr_sock_t;