Lots of random cleanups, mostly for native_theme_win.cc:
[chromium-blink-merge.git] / net / udp / datagram_client_socket.h
blob31fc43f49544eac2ce2fd4d5d423580410b337ec
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
3 // found in the LICENSE file.
5 #ifndef NET_UDP_DATAGRAM_CLIENT_SOCKET_H_
6 #define NET_UDP_DATAGRAM_CLIENT_SOCKET_H_
8 #include "net/socket/socket.h"
9 #include "net/udp/datagram_socket.h"
11 namespace net {
13 class IPEndPoint;
15 class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket,
16 public Socket {
17 public:
18 virtual ~DatagramClientSocket() {}
20 // Initialize this socket as a client socket to server at |address|.
21 // Returns a network error code.
22 virtual int Connect(const IPEndPoint& address) = 0;
25 } // namespace net
27 #endif // NET_UDP_DATAGRAM_CLIENT_SOCKET_H_