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 #ifndef NET_UDP_DATAGRAM_SERVER_SOCKET_H_ | 5 #ifndef NET_UDP_DATAGRAM_SERVER_SOCKET_H_ |
6 #define NET_UDP_DATAGRAM_SERVER_SOCKET_H_ | 6 #define NET_UDP_DATAGRAM_SERVER_SOCKET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <sys/socket.h> | |
10 | |
11 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
12 #include "net/udp/datagram_socket.h" | 10 #include "net/udp/datagram_socket.h" |
13 | 11 |
14 namespace net { | 12 namespace net { |
15 | 13 |
16 class IPEndPoint; | 14 class IPEndPoint; |
17 class IOBuffer; | 15 class IOBuffer; |
18 | 16 |
19 // A UDP Socket. | 17 // A UDP Socket. |
20 class DatagramServerSocket : public DatagramSocket { | 18 class DatagramServerSocket : public DatagramSocket { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // alive until the callback is called. | 52 // alive until the callback is called. |
55 virtual int SendTo(IOBuffer* buf, | 53 virtual int SendTo(IOBuffer* buf, |
56 int buf_len, | 54 int buf_len, |
57 const IPEndPoint& address, | 55 const IPEndPoint& address, |
58 CompletionCallback* callback) = 0; | 56 CompletionCallback* callback) = 0; |
59 }; | 57 }; |
60 | 58 |
61 } // namespace net | 59 } // namespace net |
62 | 60 |
63 #endif // NET_UDP_DATAGRAM_SERVER_SOCKET_H_ | 61 #endif // NET_UDP_DATAGRAM_SERVER_SOCKET_H_ |
OLD | NEW |