1 #ifndef MSP_NET_SOCKET_PRIVATE_H_
2 #define MSP_NET_SOCKET_PRIVATE_H_
4 #include <msp/io/handle.h>
11 typedef int socklen_t;
14 struct Socket::Private
22 /* On POSIX platforms this is the same as the handle. This might seem
23 strange but it allows the same syntax on both POSIX and Windows. */
26 int set_option(int, int, const void *, socklen_t);
27 int get_option(int, int, void *, socklen_t *);