| 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_CLIENT_SOCKET_H_ | 5 #ifndef NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ |
| 6 #define NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ | 6 #define NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "net/socket/socket.h" | 9 #include "net/socket/socket.h" |
| 10 #include "net/udp/datagram_socket.h" | 10 #include "net/udp/datagram_socket.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 class IPEndPoint; | 14 class IPEndPoint; |
| 15 | 15 |
| 16 class NET_TEST DatagramClientSocket : public DatagramSocket, public Socket { | 16 class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket, |
| 17 public Socket { |
| 17 public: | 18 public: |
| 18 virtual ~DatagramClientSocket() {} | 19 virtual ~DatagramClientSocket() {} |
| 19 | 20 |
| 20 // Initialize this socket as a client socket to server at |address|. | 21 // Initialize this socket as a client socket to server at |address|. |
| 21 // Returns a network error code. | 22 // Returns a network error code. |
| 22 virtual int Connect(const IPEndPoint& address) = 0; | 23 virtual int Connect(const IPEndPoint& address) = 0; |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 } // namespace net | 26 } // namespace net |
| 26 | 27 |
| 27 #endif // NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ | 28 #endif // NET_UDP_DATAGRAM_CLIENT_SOCKET_H_ |
| OLD | NEW |