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 #include <stdio.h> |
| 6 #include "base/logging.h" |
| 7 #include "net/socket/sctp_support.h" |
| 8 |
| 9 namespace net { |
| 10 |
| 11 static bool g_sctp_enabled_ = false; |
| 12 static bool g_sctp_control_stream_enabled_ = false; |
| 13 |
| 14 bool sctp_enabled() { |
| 15 return g_sctp_enabled_; |
| 16 } |
| 17 |
| 18 void set_sctp_enabled() { |
| 19 g_sctp_enabled_ = true; |
| 20 } |
| 21 |
| 22 bool sctp_control_stream_enabled() { |
| 23 return g_sctp_control_stream_enabled_; |
| 24 } |
| 25 |
| 26 void set_sctp_control_stream_enabled() { |
| 27 g_sctp_control_stream_enabled_ = true; |
| 28 } |
| 29 |
| 30 } // namespace net |
OLD | NEW |