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_UDP_DATAGRAM_SERVER_SOCKET_H_ | 5 #ifndef NET_SOCKET_DATAGRAM_SERVER_SOCKET_H_ |
6 #define NET_UDP_DATAGRAM_SERVER_SOCKET_H_ | 6 #define NET_SOCKET_DATAGRAM_SERVER_SOCKET_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/udp/datagram_socket.h" | 12 #include "net/socket/datagram_socket.h" |
13 #include "net/udp/diff_serv_code_point.h" | 13 #include "net/socket/diff_serv_code_point.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class IPAddress; | 17 class IPAddress; |
18 class IPEndPoint; | 18 class IPEndPoint; |
19 class IOBuffer; | 19 class IOBuffer; |
20 | 20 |
21 // A UDP Socket. | 21 // A UDP Socket. |
22 class NET_EXPORT DatagramServerSocket : public DatagramSocket { | 22 class NET_EXPORT DatagramServerSocket : public DatagramSocket { |
23 public: | 23 public: |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Set the Differentiated Services Code Point. May do nothing on | 105 // Set the Differentiated Services Code Point. May do nothing on |
106 // some platforms. Returns a network error code. | 106 // some platforms. Returns a network error code. |
107 virtual int SetDiffServCodePoint(DiffServCodePoint dscp) = 0; | 107 virtual int SetDiffServCodePoint(DiffServCodePoint dscp) = 0; |
108 | 108 |
109 // Resets the thread to be used for thread-safety checks. | 109 // Resets the thread to be used for thread-safety checks. |
110 virtual void DetachFromThread() = 0; | 110 virtual void DetachFromThread() = 0; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace net | 113 } // namespace net |
114 | 114 |
115 #endif // NET_UDP_DATAGRAM_SERVER_SOCKET_H_ | 115 #endif // NET_SOCKET_DATAGRAM_SERVER_SOCKET_H_ |
OLD | NEW |