X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fsocket_private.h;fp=source%2Fnet%2Fsocket_private.h;h=fc8b23be4cf118d6e984f89735b43fc5c0345169;hb=3840d5d193327059b84406ee6b0ba263f5ef2401;hp=83cc36947ac561a023f98c4b84f4e90be5cb30ec;hpb=de95d7d024ebf9d18721579f52b98311c853ea67;p=libs%2Fnet.git diff --git a/source/net/socket_private.h b/source/net/socket_private.h index 83cc369..fc8b23b 100644 --- a/source/net/socket_private.h +++ b/source/net/socket_private.h @@ -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