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 } | |
46 | 41 |
47 void UDPClientSocket::Close() { | 42 void UDPClientSocket::Close() { |
48 socket_.Close(); | 43 socket_.Close(); |
49 } | 44 } |
50 | 45 |
51 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const { | 46 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const { |
52 return socket_.GetPeerAddress(address); | 47 return socket_.GetPeerAddress(address); |
53 } | 48 } |
54 | 49 |
55 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const { | 50 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const { |
56 return socket_.GetLocalAddress(address); | 51 return socket_.GetLocalAddress(address); |
57 } | 52 } |
58 | 53 |
59 bool UDPClientSocket::SetReceiveBufferSize(int32 size) { | 54 bool UDPClientSocket::SetReceiveBufferSize(int32 size) { |
60 return socket_.SetReceiveBufferSize(size); | 55 return socket_.SetReceiveBufferSize(size); |
61 } | 56 } |
62 | 57 |
63 bool UDPClientSocket::SetSendBufferSize(int32 size) { | 58 bool UDPClientSocket::SetSendBufferSize(int32 size) { |
64 return socket_.SetSendBufferSize(size); | 59 return socket_.SetSendBufferSize(size); |
65 } | 60 } |
66 | 61 |
67 const BoundNetLog& UDPClientSocket::NetLog() const { | 62 const BoundNetLog& UDPClientSocket::NetLog() const { |
68 return socket_.NetLog(); | 63 return socket_.NetLog(); |
69 } | 64 } |
70 | 65 |
71 } // namespace net | 66 } // namespace net |
OLD | NEW |