namespace Msp {
namespace Net {
+#ifdef _WIN32
+typedef int socklen_t;
+#endif
+
struct Socket::Private
{
-#ifdef WIN32
+#ifdef _WIN32
SOCKET handle;
#else
int handle;
/* On POSIX platforms this is the same as the handle. This might seem
strange but it allows the same syntax on both POSIX and Windows. */
IO::Handle event;
+
+ int set_option(int, int, const void *, socklen_t);
+ int get_option(int, int, void *, socklen_t *);
};
} // namespace Net