| 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 "net/base/completion_callback.h" | 8 #include "net/base/completion_callback.h" |
| 9 #include "net/base/net_util.h" | 9 #include "net/base/net_util.h" |
| 10 #include "net/udp/datagram_server_socket.h" | 10 #include "net/udp/datagram_server_socket.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 int JoinGroup(const IPAddressNumber& group_address) const override; | 42 int JoinGroup(const IPAddressNumber& group_address) const override; |
| 43 int LeaveGroup(const IPAddressNumber& group_address) const override; | 43 int LeaveGroup(const IPAddressNumber& group_address) const override; |
| 44 int SetMulticastInterface(uint32 interface_index) override; | 44 int SetMulticastInterface(uint32 interface_index) override; |
| 45 int SetMulticastTimeToLive(int time_to_live) override; | 45 int SetMulticastTimeToLive(int time_to_live) override; |
| 46 int SetMulticastLoopbackMode(bool loopback) override; | 46 int SetMulticastLoopbackMode(bool loopback) override; |
| 47 int SetDiffServCodePoint(DiffServCodePoint dscp) override; | 47 int SetDiffServCodePoint(DiffServCodePoint dscp) override; |
| 48 void DetachFromThread() override; | 48 void DetachFromThread() override; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 UDPSocket socket_; | 51 UDPSocket socket_; |
| 52 bool allow_broadcast_; |
| 52 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); | 53 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace net | 56 } // namespace net |
| 56 | 57 |
| 57 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ | 58 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ |
| OLD | NEW |