From bc31d79da119c0c6ccb869f2bc25792368796eef Mon Sep 17 00:00:00 2001 From: Nathan Bowhay Date: Thu, 29 Jan 2015 11:04:49 -0800 Subject: [PATCH] Changed type to NetSocket Changed some S32 types to use the typedef NetSocket since they are a socket. --- Engine/source/platform/platformNet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Engine/source/platform/platformNet.cpp b/Engine/source/platform/platformNet.cpp index acc4e9905..f4f5c85b1 100644 --- a/Engine/source/platform/platformNet.cpp +++ b/Engine/source/platform/platformNet.cpp @@ -141,7 +141,7 @@ static const char* strerror_wsa( S32 code ) static Net::Error getLastError(); static S32 defaultPort = 28000; static S32 netPort = 0; -static S32 udpSocket = InvalidSocket; +static NetSocket udpSocket = InvalidSocket; ConnectionNotifyEvent Net::smConnectionNotify; ConnectionAcceptedEvent Net::smConnectionAccept; @@ -790,7 +790,7 @@ void Net::process() NetSocket Net::openSocket() { - S32 retSocket; + NetSocket retSocket; retSocket = socket(AF_INET, SOCK_STREAM, 0); if(retSocket == InvalidSocket) @@ -835,7 +835,7 @@ NetSocket Net::accept(NetSocket acceptSocket, NetAddress *remoteAddress) sockaddr_in socketAddress; socklen_t addrLen = sizeof(socketAddress); - S32 retVal = ::accept(acceptSocket, (sockaddr *) &socketAddress, &addrLen); + NetSocket retVal = ::accept(acceptSocket, (sockaddr *) &socketAddress, &addrLen); if(retVal != InvalidSocket) { IPSocketToNetAddress(&socketAddress, remoteAddress);