Explorar el Código

Kernel+LibC: Add SO_REUSEADDR macro

Note that this is not actually implemented, I'm just defining it.
Andreas Kling hace 5 años
padre
commit
0ba458cfa0
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      Kernel/UnixTypes.h
  2. 1 0
      Libraries/LibC/sys/socket.h

+ 1 - 0
Kernel/UnixTypes.h

@@ -400,6 +400,7 @@ struct pollfd {
 #define SO_KEEPALIVE 3
 #define SO_ERROR 4
 #define SO_PEERCRED 5
+#define SO_REUSEADDR 6
 
 #define IPPROTO_IP 0
 #define IPPROTO_ICMP 1

+ 1 - 0
Libraries/LibC/sys/socket.h

@@ -79,6 +79,7 @@ struct ucred {
 #define SO_KEEPALIVE 3
 #define SO_ERROR 4
 #define SO_PEERCRED 5
+#define SO_REUSEADDR 6
 
 int socket(int domain, int type, int protocol);
 int bind(int sockfd, const struct sockaddr* addr, socklen_t);