Index: src/platform-win32.cc |
=================================================================== |
--- src/platform-win32.cc (revision 1410) |
+++ src/platform-win32.cc (working copy) |
@@ -1583,7 +1583,6 @@ |
// Data Transimission |
int Send(const char* data, int len) const; |
- bool SendAll(const char* data, int len) const; |
int Receive(char* data, int len) const; |
bool IsValid() const { return socket_ != INVALID_SOCKET; } |
@@ -1663,19 +1662,6 @@ |
} |
-bool Win32Socket::SendAll(const char* data, int len) const { |
- int sent_len = 0; |
- while (sent_len < len) { |
- int status = Send(data, len); |
- if (status <= 0) { |
- return false; |
- } |
- sent_len += status; |
- } |
- return true; |
-} |
- |
- |
int Win32Socket::Receive(char* data, int len) const { |
int status = recv(socket_, data, len, 0); |
return status; |