diff options
author | Anton Kling <anton@kling.gg> | 2024-06-11 13:33:01 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-11 15:18:40 +0200 |
commit | abf9cf5bec2712465400417cc8232fee2d1cce28 (patch) | |
tree | 3e43f9cc8e194aa20de6e2e5a1916a10ced69f44 /include | |
parent | b118759096ef08bfcc003933059de46a7a964ad7 (diff) |
TCP stuff
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/socket.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h index eab62eb..f67b6a0 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -38,6 +38,17 @@ typedef uint16_t in_port_t; typedef unsigned int sa_family_t; typedef int socklen_t; +struct addrinfo { + int ai_flags; + int ai_family; + int ai_socktype; + int ai_protocol; + socklen_t ai_addrlen; + struct sockaddr *ai_addr; + char *ai_canonname; + struct addrinfo *ai_next; +}; + struct sockaddr { sa_family_t sa_family; /* Address family */ char *sa_data; /* Socket address */ |