| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 int buf_len, | 109 int buf_len, |
| 110 const CompletionCallback& callback) { | 110 const CompletionCallback& callback) { |
| 111 return messenger_.Read(buf, buf_len, callback); | 111 return messenger_.Read(buf, buf_len, callback); |
| 112 } | 112 } |
| 113 | 113 |
| 114 int CurveCPClientSocket::Write(IOBuffer* buf, | 114 int CurveCPClientSocket::Write(IOBuffer* buf, |
| 115 int buf_len, | 115 int buf_len, |
| 116 OldCompletionCallback* callback) { | 116 OldCompletionCallback* callback) { |
| 117 return messenger_.Write(buf, buf_len, callback); | 117 return messenger_.Write(buf, buf_len, callback); |
| 118 } | 118 } |
| 119 int CurveCPClientSocket::Write(IOBuffer* buf, |
| 120 int buf_len, |
| 121 const CompletionCallback& callback) { |
| 122 return messenger_.Write(buf, buf_len, callback); |
| 123 } |
| 119 | 124 |
| 120 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { | 125 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { |
| 121 return true; | 126 return true; |
| 122 } | 127 } |
| 123 | 128 |
| 124 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { | 129 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { |
| 125 return true; | 130 return true; |
| 126 } | 131 } |
| 127 | 132 |
| 128 } // namespace net | 133 } // namespace net |
| OLD | NEW |