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

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

Issue 4039003: Add experimental option for TCP FastOpen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « net/socket/ssl_client_socket_win.cc ('k') | net/socket/tcp_client_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 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 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_SOCKET_TCP_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include "net/socket/tcp_client_socket_win.h" 12 #include "net/socket/tcp_client_socket_win.h"
13 #elif defined(OS_POSIX) 13 #elif defined(OS_POSIX)
14 #include "net/socket/tcp_client_socket_libevent.h" 14 #include "net/socket/tcp_client_socket_libevent.h"
15 #endif 15 #endif
16 16
17 namespace net { 17 namespace net {
18 18
19 // A client socket that uses TCP as the transport layer. 19 // A client socket that uses TCP as the transport layer.
20 #if defined(OS_WIN) 20 #if defined(OS_WIN)
21 typedef TCPClientSocketWin TCPClientSocket; 21 typedef TCPClientSocketWin TCPClientSocket;
22 #elif defined(OS_POSIX) 22 #elif defined(OS_POSIX)
23 typedef TCPClientSocketLibevent TCPClientSocket; 23 typedef TCPClientSocketLibevent TCPClientSocket;
24 #endif 24 #endif
25 25
26 // Enable/disable experimental TCP FastOpen option.
27 // Not thread safe. Must be called during initialization/startup only.
28 void set_tcp_fastopen_enabled(bool value);
29
30 // Check if the TCP FastOpen option is enabled.
31 bool is_tcp_fastopen_enabled();
32
26 } // namespace net 33 } // namespace net
27 34
28 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ 35 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_win.cc ('k') | net/socket/tcp_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698