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

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

Issue 879723002: When receiving OOB data on a socket, return ERR_OOB_DATA. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « net/socket/socket_libevent.cc ('k') | net/socket/tcp_socket_libevent.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SOCKET_LIBEVENT_H_ 5 #ifndef NET_SOCKET_TCP_SOCKET_LIBEVENT_H_
6 #define NET_SOCKET_TCP_SOCKET_LIBEVENT_H_ 6 #define NET_SOCKET_TCP_SOCKET_LIBEVENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // NetLog::TYPE_TCP_CONNECT. These methods set the start/end of 79 // NetLog::TYPE_TCP_CONNECT. These methods set the start/end of
80 // NetLog::TYPE_TCP_CONNECT. 80 // NetLog::TYPE_TCP_CONNECT.
81 // 81 //
82 // TODO(yzshen): Change logging format and let TCPClientSocket log the 82 // TODO(yzshen): Change logging format and let TCPClientSocket log the
83 // start/end of a series of connect attempts itself. 83 // start/end of a series of connect attempts itself.
84 void StartLoggingMultipleConnectAttempts(const AddressList& addresses); 84 void StartLoggingMultipleConnectAttempts(const AddressList& addresses);
85 void EndLoggingMultipleConnectAttempts(int net_error); 85 void EndLoggingMultipleConnectAttempts(int net_error);
86 86
87 const BoundNetLog& net_log() const { return net_log_; } 87 const BoundNetLog& net_log() const { return net_log_; }
88 88
89 int socket() const;
90
89 private: 91 private:
90 // States that using a socket with TCP FastOpen can lead to. 92 // States that using a socket with TCP FastOpen can lead to.
91 enum TCPFastOpenStatus { 93 enum TCPFastOpenStatus {
92 TCP_FASTOPEN_STATUS_UNKNOWN, 94 TCP_FASTOPEN_STATUS_UNKNOWN,
93 95
94 // The initial FastOpen connect attempted returned synchronously, 96 // The initial FastOpen connect attempted returned synchronously,
95 // indicating that we had and sent a cookie along with the initial data. 97 // indicating that we had and sent a cookie along with the initial data.
96 TCP_FASTOPEN_FAST_CONNECT_RETURN, 98 TCP_FASTOPEN_FAST_CONNECT_RETURN,
97 99
98 // The initial FastOpen connect attempted returned asynchronously, 100 // The initial FastOpen connect attempted returned asynchronously,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool logging_multiple_connect_attempts_; 207 bool logging_multiple_connect_attempts_;
206 208
207 BoundNetLog net_log_; 209 BoundNetLog net_log_;
208 210
209 DISALLOW_COPY_AND_ASSIGN(TCPSocketLibevent); 211 DISALLOW_COPY_AND_ASSIGN(TCPSocketLibevent);
210 }; 212 };
211 213
212 } // namespace net 214 } // namespace net
213 215
214 #endif // NET_SOCKET_TCP_SOCKET_LIBEVENT_H_ 216 #endif // NET_SOCKET_TCP_SOCKET_LIBEVENT_H_
OLDNEW
« no previous file with comments | « net/socket/socket_libevent.cc ('k') | net/socket/tcp_socket_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698