1 // Copyright (c) 2006-2009 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. 4 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_H_ 7 8 #include "build/build_config.h" 9 10 #if defined(OS_WIN) 11 #include "net/socket/tcp_client_socket_win.h" 12 #elif defined(OS_POSIX) 13 #include "net/socket/tcp_client_socket_libevent.h" 14 #endif 15 16 namespace net { 17 18 // A client socket that uses TCP as the transport layer. 19 #if defined(OS_WIN) 20 typedef TCPClientSocketWin TCPClientSocket; 21 #elif defined(OS_POSIX) 22 typedef TCPClientSocketLibevent TCPClientSocket; 23 #endif 24 25 } // namespace net 26 27 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ 28