]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/socket_private.h
Implement an asynchronous name resolver class
[libs/net.git] / source / net / socket_private.h
index 83cc36947ac561a023f98c4b84f4e90be5cb30ec..fc8b23be4cf118d6e984f89735b43fc5c0345169 100644 (file)
@@ -7,6 +7,10 @@
 namespace Msp {
 namespace Net {
 
+#ifdef WIN32
+typedef int socklen_t;
+#endif
+
 struct Socket::Private
 {
 #ifdef WIN32
@@ -18,6 +22,9 @@ struct Socket::Private
        /* 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