| Index: src/platform-freebsd.cc
|
| ===================================================================
|
| --- src/platform-freebsd.cc (revision 1410)
|
| +++ src/platform-freebsd.cc (working copy)
|
| @@ -656,7 +656,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; }
|
| @@ -736,19 +735,6 @@
|
| }
|
|
|
|
|
| -bool FreeBSDSocket::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 FreeBSDSocket::Receive(char* data, int len) const {
|
| int status = recv(socket_, data, len, 0);
|
| return status;
|
|
|