OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/base/ip_endpoint.h" | 5 #include "net/base/ip_endpoint.h" |
6 #include "net/base/net_errors.h" | 6 #include "net/base/net_errors.h" |
7 #include "net/base/sys_addrinfo.h" | 7 #include "net/base/sys_addrinfo.h" |
8 #include "net/curvecp/curvecp_client_socket.h" | 8 #include "net/curvecp/curvecp_client_socket.h" |
9 #include "net/curvecp/messenger.h" | 9 #include "net/curvecp/messenger.h" |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool CurveCPClientSocket::WasEverUsed() const { | 81 bool CurveCPClientSocket::WasEverUsed() const { |
82 // This is ridiculous. | 82 // This is ridiculous. |
83 return true; | 83 return true; |
84 } | 84 } |
85 | 85 |
86 bool CurveCPClientSocket::UsingTCPFastOpen() const { | 86 bool CurveCPClientSocket::UsingTCPFastOpen() const { |
87 // This is ridiculous. | 87 // This is ridiculous. |
88 return false; | 88 return false; |
89 } | 89 } |
90 | 90 |
| 91 int64 CurveCPClientSocket::NumBytesRead() const { |
| 92 return -1; |
| 93 } |
| 94 |
| 95 int CurveCPClientSocket::GetConnectTimeMicros() const { |
| 96 return -1; |
| 97 } |
| 98 |
91 int CurveCPClientSocket::Read(IOBuffer* buf, | 99 int CurveCPClientSocket::Read(IOBuffer* buf, |
92 int buf_len, | 100 int buf_len, |
93 CompletionCallback* callback) { | 101 CompletionCallback* callback) { |
94 return messenger_.Read(buf, buf_len, callback); | 102 return messenger_.Read(buf, buf_len, callback); |
95 } | 103 } |
96 | 104 |
97 int CurveCPClientSocket::Write(IOBuffer* buf, | 105 int CurveCPClientSocket::Write(IOBuffer* buf, |
98 int buf_len, | 106 int buf_len, |
99 CompletionCallback* callback) { | 107 CompletionCallback* callback) { |
100 return messenger_.Write(buf, buf_len, callback); | 108 return messenger_.Write(buf, buf_len, callback); |
101 } | 109 } |
102 | 110 |
103 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { | 111 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { |
104 return true; | 112 return true; |
105 } | 113 } |
106 | 114 |
107 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { | 115 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { |
108 return true; | 116 return true; |
109 } | 117 } |
110 | 118 |
111 } // namespace net | 119 } // namespace net |
OLD | NEW |