summaryrefslogtreecommitdiffstats
path: root/net/socket/tcp_client_socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/tcp_client_socket.h')
-rw-r--r--net/socket/tcp_client_socket.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/net/socket/tcp_client_socket.h b/net/socket/tcp_client_socket.h
new file mode 100644
index 0000000..194de6e
--- /dev/null
+++ b/net/socket/tcp_client_socket.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SOCKET_TCP_CLIENT_SOCKET_H_
+#define NET_SOCKET_TCP_CLIENT_SOCKET_H_
+
+#include "build/build_config.h"
+
+#if defined(OS_WIN)
+#include "net/socket/tcp_client_socket_win.h"
+#elif defined(OS_POSIX)
+#include "net/socket/tcp_client_socket_libevent.h"
+#endif
+
+namespace net {
+
+// A client socket that uses TCP as the transport layer.
+#if defined(OS_WIN)
+typedef TCPClientSocketWin TCPClientSocket;
+#elif defined(OS_POSIX)
+typedef TCPClientSocketLibevent TCPClientSocket;
+#endif
+
+} // namespace net
+
+#endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_