Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: net/socket/tcp_socket.h

Issue 22861033: Move server socket functionality from TCPServerSocket into TCPSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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_SOCKET_H_
6 #define NET_SOCKET_TCP_SOCKET_H_
7
8 #include "build/build_config.h"
9
10 #if defined(OS_WIN)
11 #include "net/socket/tcp_socket_win.h"
12 #elif defined(OS_POSIX)
13 #include "net/socket/tcp_socket_libevent.h"
14 #endif
15
16 namespace net {
17
18 // TCPSocket provides a platform-indenpendent interface for TCP sockets.
Wez 2013/08/30 19:17:51 typo: independent
yzshen1 2013/08/30 21:11:22 Done.
19 //
20 // It is recommended to use TCPClientSocket/TCPServerSocket instead of this
21 // class, unless a clear separation of client and server socket functionality is
22 // not suitable for your use case (e.g., a socket needs to be created and bound
23 // before you know whether it is a client or server socket).
24 #if defined(OS_WIN)
25 typedef TCPSocketWin TCPSocket;
26 #elif defined(OS_POSIX)
27 typedef TCPSocketLibevent TCPSocket;
28 #endif
29
30 } // namespace net
31
32 #endif // NET_SOCKET_TCP_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698