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/udp/udp_client_socket.h" | 5 #include "net/udp/udp_client_socket.h" |
6 | 6 |
7 #include "net/base/net_log.h" | 7 #include "net/base/net_log.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 int buf_len, | 31 int buf_len, |
32 const CompletionCallback& callback) { | 32 const CompletionCallback& callback) { |
33 return socket_.Read(buf, buf_len, callback); | 33 return socket_.Read(buf, buf_len, callback); |
34 } | 34 } |
35 | 35 |
36 int UDPClientSocket::Write(IOBuffer* buf, | 36 int UDPClientSocket::Write(IOBuffer* buf, |
37 int buf_len, | 37 int buf_len, |
38 OldCompletionCallback* callback) { | 38 OldCompletionCallback* callback) { |
39 return socket_.Write(buf, buf_len, callback); | 39 return socket_.Write(buf, buf_len, callback); |
40 } | 40 } |
| 41 int UDPClientSocket::Write(IOBuffer* buf, |
| 42 int buf_len, |
| 43 const CompletionCallback& callback) { |
| 44 return socket_.Write(buf, buf_len, callback); |
| 45 } |
41 | 46 |
42 void UDPClientSocket::Close() { | 47 void UDPClientSocket::Close() { |
43 socket_.Close(); | 48 socket_.Close(); |
44 } | 49 } |
45 | 50 |
46 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const { | 51 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const { |
47 return socket_.GetPeerAddress(address); | 52 return socket_.GetPeerAddress(address); |
48 } | 53 } |
49 | 54 |
50 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const { | 55 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const { |
51 return socket_.GetLocalAddress(address); | 56 return socket_.GetLocalAddress(address); |
52 } | 57 } |
53 | 58 |
54 bool UDPClientSocket::SetReceiveBufferSize(int32 size) { | 59 bool UDPClientSocket::SetReceiveBufferSize(int32 size) { |
55 return socket_.SetReceiveBufferSize(size); | 60 return socket_.SetReceiveBufferSize(size); |
56 } | 61 } |
57 | 62 |
58 bool UDPClientSocket::SetSendBufferSize(int32 size) { | 63 bool UDPClientSocket::SetSendBufferSize(int32 size) { |
59 return socket_.SetSendBufferSize(size); | 64 return socket_.SetSendBufferSize(size); |
60 } | 65 } |
61 | 66 |
62 const BoundNetLog& UDPClientSocket::NetLog() const { | 67 const BoundNetLog& UDPClientSocket::NetLog() const { |
63 return socket_.NetLog(); | 68 return socket_.NetLog(); |
64 } | 69 } |
65 | 70 |
66 } // namespace net | 71 } // namespace net |
OLD | NEW |