1 #ifndef MSP_NET_SOCKET_PRIVATE_H_
2 #define MSP_NET_SOCKET_PRIVATE_H_
4 #ifndef MSP_NET_PLATFORM_API_H_
5 #error platform_api.h must be included to use private headers
8 #include <msp/io/handle.h>
11 #include "socket_platform.h"
16 struct Socket::Private
20 /* On POSIX platforms this is the same as the handle. This might seem
21 strange but it allows the same syntax on both POSIX and Windows. */
25 void set_inherit(bool);
26 int set_option(int, int, const void *, socklen_t);
27 int get_option(int, int, void *, socklen_t *);
30 unsigned check_sys_error(int, const char *);
31 bool check_sys_connect_error(int);