OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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_SCTP_SUPPORT_H_ |
| 6 #define NET_SOCKET_SCTP_SUPPORT_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 // TODO(jtl): consider implementing kNumberOfSctpStreamsToRequest and |
| 11 // kSctpMaxBurst. |
| 12 |
| 13 namespace net { |
| 14 |
| 15 // sctp_enabled returns true if all sockets are forced to use the SCTP transport |
| 16 // protocol. |
| 17 bool sctp_enabled(); |
| 18 |
| 19 // Force all sockets to use the SCTP transport protocol. |
| 20 void set_sctp_enabled(); |
| 21 |
| 22 // sctp_control_stream_enabled returns true if all sockets are using the SCTP |
| 23 // transport protocol, and all SPDY control frames are sent on SCTP stream ID 0. |
| 24 bool sctp_control_stream_enabled(); |
| 25 |
| 26 // Send all SPDY control frames on SCTP stream ID 0. |
| 27 void set_sctp_control_stream_enabled(); |
| 28 |
| 29 } // namespace net |
| 30 |
| 31 #endif // NET_SOCKET_SCTP_SUPPORT_H_ |
OLD | NEW |