| 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 #ifndef NET_SOCKET_UDP_SERVER_SOCKET_H_ | 5 #ifndef NET_SOCKET_UDP_SERVER_SOCKET_H_ |
| 6 #define NET_SOCKET_UDP_SERVER_SOCKET_H_ | 6 #define NET_SOCKET_UDP_SERVER_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 int SendTo(IOBuffer* buf, | 35 int SendTo(IOBuffer* buf, |
| 36 int buf_len, | 36 int buf_len, |
| 37 const IPEndPoint& address, | 37 const IPEndPoint& address, |
| 38 const CompletionCallback& callback) override; | 38 const CompletionCallback& callback) override; |
| 39 int SetReceiveBufferSize(int32_t size) override; | 39 int SetReceiveBufferSize(int32_t size) override; |
| 40 int SetSendBufferSize(int32_t size) override; | 40 int SetSendBufferSize(int32_t size) override; |
| 41 int SetDoNotFragment() override; | 41 int SetDoNotFragment() override; |
| 42 void Close() override; | 42 void Close() override; |
| 43 int GetPeerAddress(IPEndPoint* address) const override; | 43 int GetPeerAddress(IPEndPoint* address) const override; |
| 44 int GetLocalAddress(IPEndPoint* address) const override; | 44 int GetLocalAddress(IPEndPoint* address) const override; |
| 45 void UseNonBlockingIO() override; | |
| 46 const NetLogWithSource& NetLog() const override; | 45 const NetLogWithSource& NetLog() const override; |
| 47 void AllowAddressReuse() override; | 46 void AllowAddressReuse() override; |
| 48 void AllowBroadcast() override; | 47 void AllowBroadcast() override; |
| 49 int JoinGroup(const IPAddress& group_address) const override; | 48 int JoinGroup(const IPAddress& group_address) const override; |
| 50 int LeaveGroup(const IPAddress& group_address) const override; | 49 int LeaveGroup(const IPAddress& group_address) const override; |
| 51 int SetMulticastInterface(uint32_t interface_index) override; | 50 int SetMulticastInterface(uint32_t interface_index) override; |
| 52 int SetMulticastTimeToLive(int time_to_live) override; | 51 int SetMulticastTimeToLive(int time_to_live) override; |
| 53 int SetMulticastLoopbackMode(bool loopback) override; | 52 int SetMulticastLoopbackMode(bool loopback) override; |
| 54 int SetDiffServCodePoint(DiffServCodePoint dscp) override; | 53 int SetDiffServCodePoint(DiffServCodePoint dscp) override; |
| 55 void DetachFromThread() override; | 54 void DetachFromThread() override; |
| 56 | 55 |
| 57 private: | 56 private: |
| 58 UDPSocket socket_; | 57 UDPSocket socket_; |
| 59 bool allow_address_reuse_; | 58 bool allow_address_reuse_; |
| 60 bool allow_broadcast_; | 59 bool allow_broadcast_; |
| 61 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); | 60 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace net | 63 } // namespace net |
| 65 | 64 |
| 66 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ | 65 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ |
| OLD | NEW |