diff options
author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
commit | 487eb17ec075dd2bdc91f78b41577b070d90f8f5 (patch) | |
tree | 1dccfa3836a48cf917934fe5dd01210d9d60d236 /node/UdpSocket.hpp | |
parent | 9f16707b0b8ec62de67394bf4884408eb65f2a7a (diff) | |
download | infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.tar.gz infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.zip |
ZeroTierOne for Windows binary project, builds and runs and mostly works but still some issues with tap.
Diffstat (limited to 'node/UdpSocket.hpp')
-rw-r--r-- | node/UdpSocket.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node/UdpSocket.hpp b/node/UdpSocket.hpp index 6b7d488c..d8467f64 100644 --- a/node/UdpSocket.hpp +++ b/node/UdpSocket.hpp @@ -35,6 +35,10 @@ #include "InetAddress.hpp" #include "Mutex.hpp" +#ifdef __WINDOWS__ +#include <WinSock2.h> +#endif + namespace ZeroTier { /** @@ -100,7 +104,11 @@ private: void (*_packetHandler)(UdpSocket *,void *,const InetAddress &,const void *,unsigned int); void *_arg; int _localPort; +#ifdef __WINDOWS__ + volatile SOCKET _sock; +#else volatile int _sock; +#endif bool _v6; Mutex _sendLock; }; |