Index: src/platform-macos.cc |
=================================================================== |
--- src/platform-macos.cc (revision 1410) |
+++ src/platform-macos.cc (working copy) |
@@ -607,7 +607,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_ != -1; } |
@@ -693,19 +692,6 @@ |
} |
-bool MacOSSocket::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 MacOSSocket::Receive(char* data, int len) const { |
int status = recv(socket_, data, len, 0); |
return status; |