summaryrefslogtreecommitdiff
path: root/node/UdpSocket.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-03-25 08:37:08 -0700
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-03-25 08:37:08 -0700
commit328be8f8461462ad88a639822b7df32f7b92211f (patch)
tree69c1d4dec9b0f0c885f5c3c922e7c0bada582181 /node/UdpSocket.cpp
parentd9b91758e044a70242dee1697345cd2ee4a096d4 (diff)
downloadinfinitytier-328be8f8461462ad88a639822b7df32f7b92211f.tar.gz
infinitytier-328be8f8461462ad88a639822b7df32f7b92211f.zip
Make Windows build, add (untested) Windows named pipe based IPC code.
Diffstat (limited to 'node/UdpSocket.cpp')
-rw-r--r--node/UdpSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/UdpSocket.cpp b/node/UdpSocket.cpp
index 8730428f..8fce9588 100644
--- a/node/UdpSocket.cpp
+++ b/node/UdpSocket.cpp
@@ -94,7 +94,7 @@ bool UdpSocket::notifyAvailableForRead(const SharedPtr<Socket> &self,SocketManag
Buffer<ZT_SOCKET_MAX_MESSAGE_LEN> buf;
InetAddress from;
socklen_t salen = from.saddrSpaceLen();
- int n = (int)recvfrom(_sock,buf.data(),ZT_SOCKET_MAX_MESSAGE_LEN,0,from.saddr(),&salen);
+ int n = (int)recvfrom(_sock,(char *)(buf.data()),ZT_SOCKET_MAX_MESSAGE_LEN,0,from.saddr(),&salen);
if (n > 0) {
buf.setSize((unsigned int)n);
sm->handleReceivedPacket(self,from,buf);