From 328be8f8461462ad88a639822b7df32f7b92211f Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 25 Mar 2014 08:37:08 -0700 Subject: Make Windows build, add (untested) Windows named pipe based IPC code. --- node/TcpSocket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node/TcpSocket.cpp') diff --git a/node/TcpSocket.cpp b/node/TcpSocket.cpp index dce7d3a7..a422dec6 100644 --- a/node/TcpSocket.cpp +++ b/node/TcpSocket.cpp @@ -106,7 +106,7 @@ bool TcpSocket::send(const InetAddress &to,const void *msg,unsigned int msglen) // If no output was enqueued before this, try to send() it and then // start a queued write if any remains after that. - int n = (int)::send(_sock,_outbuf,_outptr,0); + int n = (int)::send(_sock,(const char *)_outbuf,_outptr,0); if (n > 0) memmove(_outbuf,_outbuf + (unsigned int)n,_outptr -= (unsigned int)n); @@ -125,7 +125,7 @@ bool TcpSocket::notifyAvailableForRead(const SharedPtr &self,SocketManag // will not be called concurrently since only SocketManager::poll() calls this - int n = (int)::recv(_sock,buf,sizeof(buf),0); + int n = (int)::recv(_sock,(char *)buf,sizeof(buf),0); if (n <= 0) return false; // read error, stream probably closed @@ -163,7 +163,7 @@ bool TcpSocket::notifyAvailableForWrite(const SharedPtr &self,SocketMana _connecting = false; if (_outptr) { - int n = (int)::send(_sock,_outbuf,_outptr,0); + int n = (int)::send(_sock,(const char *)_outbuf,_outptr,0); if (n < 0) { switch(errno) { #ifdef EBADF -- cgit v1.2.3