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

Unified Diff: net/socket/sctp_support.h

Issue 6800009: Attn: Mike Belshe Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: net/socket/sctp_support.h
===================================================================
--- net/socket/sctp_support.h (revision 0)
+++ net/socket/sctp_support.h (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 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_SCTP_SUPPORT_H_
+#define NET_SOCKET_SCTP_SUPPORT_H_
+
+#include "base/basictypes.h"
+
+// TODO(jtl): consider implementing kNumberOfSctpStreamsToRequest and
+// kSctpMaxBurst.
+
+namespace net {
+
+// sctp_enabled returns true if all sockets are forced to use the SCTP transport
+// protocol.
+bool sctp_enabled();
+
+// Force all sockets to use the SCTP transport protocol.
+void set_sctp_enabled();
+
+// sctp_control_stream_enabled returns true if all sockets are using the SCTP
+// transport protocol, and all SPDY control frames are sent on SCTP stream ID 0.
+bool sctp_control_stream_enabled();
+
+// Send all SPDY control frames on SCTP stream ID 0.
+void set_sctp_control_stream_enabled();
+
+} // namespace net
+
+#endif // NET_SOCKET_SCTP_SUPPORT_H_
Property changes on: net/socket/sctp_support.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698