OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/sync_socket.h" | 5 #include "base/sync_socket.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <limits.h> | 8 #include <limits.h> |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 size_t SyncSocket::Peek() { | 44 size_t SyncSocket::Peek() { |
45 return 0; | 45 return 0; |
46 } | 46 } |
47 | 47 |
48 CancelableSyncSocket::CancelableSyncSocket() {} | 48 CancelableSyncSocket::CancelableSyncSocket() {} |
49 CancelableSyncSocket::CancelableSyncSocket(Handle handle) | 49 CancelableSyncSocket::CancelableSyncSocket(Handle handle) |
50 : SyncSocket(handle) { | 50 : SyncSocket(handle) { |
51 } | 51 } |
52 | 52 |
| 53 size_t CancelableSyncSocket::Send(const void* buffer, size_t length) { |
| 54 return 0; |
| 55 } |
| 56 |
53 bool CancelableSyncSocket::Shutdown() { | 57 bool CancelableSyncSocket::Shutdown() { |
54 return false; | 58 return false; |
55 } | 59 } |
56 | 60 |
57 // static | 61 // static |
58 bool CancelableSyncSocket::CreatePair(CancelableSyncSocket* socket_a, | 62 bool CancelableSyncSocket::CreatePair(CancelableSyncSocket* socket_a, |
59 CancelableSyncSocket* socket_b) { | 63 CancelableSyncSocket* socket_b) { |
60 return SyncSocket::CreatePair(socket_a, socket_b); | 64 return SyncSocket::CreatePair(socket_a, socket_b); |
61 } | 65 } |
62 | 66 |
63 } // namespace base | 67 } // namespace base |
OLD | NEW |