Add a platform specific typedef for SOCKET in the peerconnection_server example since it's not universally 'int'.

R=pbos@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/33439004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7763 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tommi@webrtc.org
2014-11-28 10:37:31 +00:00
parent 83b5200f95
commit 2c13f659c7
2 changed files with 12 additions and 9 deletions

View File

@@ -301,7 +301,8 @@ DataSocket* ListeningSocket::Accept() const {
assert(valid());
struct sockaddr_in addr = {0};
socklen_t size = sizeof(addr);
int client = accept(socket_, reinterpret_cast<sockaddr*>(&addr), &size);
NativeSocket client =
accept(socket_, reinterpret_cast<sockaddr*>(&addr), &size);
if (client == INVALID_SOCKET)
return NULL;