summaryrefslogtreecommitdiff
path: root/src/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/udp.h')
-rw-r--r--src/udp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/udp.h b/src/udp.h
index edf0160..4c5fdc8 100644
--- a/src/udp.h
+++ b/src/udp.h
@@ -41,7 +41,10 @@
#include <sys/types.h>
#include <sys/socket.h>
-typedef struct sockaddr_storage udp_endpoint_t;
+typedef struct {
+ socklen_t len_;
+ struct sockaddr_storage addr_;
+} udp_endpoint_t;
struct udp_socket_struct {
int fd_;