Index: base/sync_socket_nacl.cc |
diff --git a/base/sync_socket_nacl.cc b/base/sync_socket_nacl.cc |
index 7bab8840c0170a1247cf6bc1d383047b3447639e..4269eeb8a28e1db08ea763756c32da76b1898ccb 100644 |
--- a/base/sync_socket_nacl.cc |
+++ b/base/sync_socket_nacl.cc |
@@ -38,15 +38,22 @@ bool SyncSocket::Close() { |
size_t SyncSocket::Send(const void* buffer, size_t length) { |
// Not implemented since it's not needed by any client code yet. |
- return -1; |
+ NOTIMPLEMENTED(); |
+ return 0; |
} |
size_t SyncSocket::Receive(void* buffer, size_t length) { |
return read(handle_, buffer, length); |
} |
+size_t SyncSocket::ReceiveWithTimeout(void* buffer, size_t length, TimeDelta) { |
+ NOTIMPLEMENTED(); |
+ return 0; |
jar (doing other things)
2013/10/14 22:49:18
When I argued for returning 0 (not -1), I was more
DaleCurtis
2013/10/14 23:12:33
Only Receive(), Shutdown() are currently called by
|
+} |
+ |
size_t SyncSocket::Peek() { |
- return -1; |
+ NOTIMPLEMENTED(); |
+ return 0; |
} |
CancelableSyncSocket::CancelableSyncSocket() { |
@@ -57,7 +64,8 @@ CancelableSyncSocket::CancelableSyncSocket(Handle handle) |
} |
size_t CancelableSyncSocket::Send(const void* buffer, size_t length) { |
- return -1; |
+ NOTIMPLEMENTED(); |
+ return 0; |
} |
bool CancelableSyncSocket::Shutdown() { |