| 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 "net/udp/udp_server_socket.h" | 5 #include "net/udp/udp_server_socket.h" |
| 6 | 6 |
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 #include "net/base/rand_callback.h" | 8 #include "net/base/rand_callback.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 | 62 |
| 63 int UDPServerSocket::SetReceiveBufferSize(int32 size) { | 63 int UDPServerSocket::SetReceiveBufferSize(int32 size) { |
| 64 return socket_.SetReceiveBufferSize(size); | 64 return socket_.SetReceiveBufferSize(size); |
| 65 } | 65 } |
| 66 | 66 |
| 67 int UDPServerSocket::SetSendBufferSize(int32 size) { | 67 int UDPServerSocket::SetSendBufferSize(int32 size) { |
| 68 return socket_.SetSendBufferSize(size); | 68 return socket_.SetSendBufferSize(size); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void UDPServerSocket::Close() { | 71 int UDPServerSocket::Close() { |
| 72 socket_.Close(); | 72 return socket_.Close(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 int UDPServerSocket::GetPeerAddress(IPEndPoint* address) const { | 75 int UDPServerSocket::GetPeerAddress(IPEndPoint* address) const { |
| 76 return socket_.GetPeerAddress(address); | 76 return socket_.GetPeerAddress(address); |
| 77 } | 77 } |
| 78 | 78 |
| 79 int UDPServerSocket::GetLocalAddress(IPEndPoint* address) const { | 79 int UDPServerSocket::GetLocalAddress(IPEndPoint* address) const { |
| 80 return socket_.GetLocalAddress(address); | 80 return socket_.GetLocalAddress(address); |
| 81 } | 81 } |
| 82 | 82 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 socket_.DetachFromThread(); | 120 socket_.DetachFromThread(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 #if defined(OS_WIN) | 123 #if defined(OS_WIN) |
| 124 void UDPServerSocket::UseNonBlockingIO() { | 124 void UDPServerSocket::UseNonBlockingIO() { |
| 125 socket_.UseNonBlockingIO(); | 125 socket_.UseNonBlockingIO(); |
| 126 } | 126 } |
| 127 #endif | 127 #endif |
| 128 | 128 |
| 129 } // namespace net | 129 } // namespace net |
| OLD | NEW |