This reverts commit b89ac622f3f5a7bb065a08cb1efba10a0e8cae23. Reason for revert: Speculative revert. Original change's description: > Reland "Enable any address ports by default." > > This reverts commit 1165949341b6f61c5d728999bfbdaf68fd5c15aa. > > Reason for revert: Speculative reland (the revert breaks a downstream project). > > Original change's description: > > Revert "Reland "Enable any address ports by default."" > > > > This reverts commit ac5bbd940ed31f8a58095952f4dcdcbb1b58203c. > > > > Reason for revert: Speculative revert, possibly breaking downstream projects > > > > Original change's description: > > > Reland "Enable any address ports by default." > > > > > > This reverts commit 056a68da896d9a578b9ea83e56d261648ea0adc6. > > > > > > Reason for revert: Trying to reland. > > > > > > Original change's description: > > > > Revert "Enable any address ports by default." > > > > > > > > This reverts commit f04148c810aad2a0809dc8978650c55308381c47. > > > > > > > > Reason for revert: Speculative revert. I suspect this is breaking a > > > > downstream test (I'll reland if it is not the culprit). > > > > > > > > Original change's description: > > > > > Enable any address ports by default. > > > > > > > > > > Ports not bound to any specific network interface are allocated by > > > > > default. These any address ports are pruned after allocation, > > > > > conditional on the allocation results of normal ports that are bound to > > > > > the enumerated interfaces. > > > > > > > > > > Bug: webrtc:9313 > > > > > Change-Id: I3ce12eeab0cf3547224e5f8c188d061fc530e145 > > > > > Reviewed-on: https://webrtc-review.googlesource.com/78383 > > > > > Commit-Queue: Qingsi Wang <qingsi@google.com> > > > > > Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> > > > > > Cr-Commit-Position: refs/heads/master@{#23673} > > > > > > > > TBR=deadbeef@webrtc.org,pthatcher@webrtc.org,qingsi@google.com > > > > > > > > Change-Id: I3b3dc42c7de46d198d4b9c270020dcf1100dd907 > > > > No-Presubmit: true > > > > No-Tree-Checks: true > > > > No-Try: true > > > > Bug: webrtc:9313 > > > > Reviewed-on: https://webrtc-review.googlesource.com/84300 > > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> > > > > Cr-Commit-Position: refs/heads/master@{#23678} > > > > > > TBR=deadbeef@webrtc.org,mbonadei@webrtc.org,pthatcher@webrtc.org,qingsi@google.com > > > > > > # Not skipping CQ checks because original CL landed > 1 day ago. > > > > > > Bug: webrtc:9313 > > > Change-Id: I98442346babb5d8953d37dc5825efaf79804ed7f > > > Reviewed-on: https://webrtc-review.googlesource.com/85000 > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > > > Commit-Queue: Qingsi Wang <qingsi@webrtc.org> > > > Cr-Commit-Position: refs/heads/master@{#23720} > > > > TBR=deadbeef@webrtc.org,mbonadei@webrtc.org,pthatcher@webrtc.org,qingsi@google.com,qingsi@webrtc.org > > > > # Not skipping CQ checks because original CL landed > 1 day ago. > > > > Bug: webrtc:9313 > > Change-Id: Ie5da4133a371532f717af144f183e299e759f152 > > Reviewed-on: https://webrtc-review.googlesource.com/95340 > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > > Reviewed-by: Qingsi Wang <qingsi@webrtc.org> > > Cr-Commit-Position: refs/heads/master@{#24374} > > TBR=deadbeef@webrtc.org,mbonadei@webrtc.org,pthatcher@webrtc.org,qingsi@google.com,qingsi@webrtc.org > > Change-Id: I52bf487d441ce8ccedee7e348b9ed9ade0fd9d1c > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: webrtc:9313 > Reviewed-on: https://webrtc-review.googlesource.com/95440 > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#24379} TBR=deadbeef@webrtc.org,mbonadei@webrtc.org,pthatcher@webrtc.org,qingsi@google.com,qingsi@webrtc.org Change-Id: I6db41f092c55be74f6594eb729ad5f15c718fe34 Bug: webrtc:9313 Reviewed-on: https://webrtc-review.googlesource.com/95520 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24412}
109 lines
4.3 KiB
C++
109 lines
4.3 KiB
C++
/*
|
|
* Copyright 2004 The WebRTC Project Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef P2P_BASE_P2PCONSTANTS_H_
|
|
#define P2P_BASE_P2PCONSTANTS_H_
|
|
|
|
#include <string>
|
|
|
|
namespace cricket {
|
|
|
|
// CN_ == "content name". When we initiate a session, we choose the
|
|
// name, and when we receive a Gingle session, we provide default
|
|
// names (since Gingle has no content names). But when we receive a
|
|
// Jingle call, the content name can be anything, so don't rely on
|
|
// these values being the same as the ones received.
|
|
extern const char CN_AUDIO[];
|
|
extern const char CN_VIDEO[];
|
|
extern const char CN_DATA[];
|
|
extern const char CN_OTHER[];
|
|
|
|
// GN stands for group name
|
|
extern const char GROUP_TYPE_BUNDLE[];
|
|
|
|
extern const int ICE_UFRAG_LENGTH;
|
|
extern const int ICE_PWD_LENGTH;
|
|
extern const size_t ICE_UFRAG_MIN_LENGTH;
|
|
extern const size_t ICE_PWD_MIN_LENGTH;
|
|
extern const size_t ICE_UFRAG_MAX_LENGTH;
|
|
extern const size_t ICE_PWD_MAX_LENGTH;
|
|
|
|
extern const int ICE_CANDIDATE_COMPONENT_RTP;
|
|
extern const int ICE_CANDIDATE_COMPONENT_RTCP;
|
|
extern const int ICE_CANDIDATE_COMPONENT_DEFAULT;
|
|
|
|
// RFC 4145, SDP setup attribute values.
|
|
extern const char CONNECTIONROLE_ACTIVE_STR[];
|
|
extern const char CONNECTIONROLE_PASSIVE_STR[];
|
|
extern const char CONNECTIONROLE_ACTPASS_STR[];
|
|
extern const char CONNECTIONROLE_HOLDCONN_STR[];
|
|
|
|
// Constants for time intervals are in milliseconds unless otherwise stated.
|
|
//
|
|
// Most of the following constants are the default values of IceConfig
|
|
// paramters. See IceConfig for detailed definition.
|
|
//
|
|
// Default value of IceConfig.receiving_timeout.
|
|
extern const int RECEIVING_TIMEOUT;
|
|
// Default value IceConfig.ice_check_min_interval.
|
|
extern const int MIN_CHECK_RECEIVING_INTERVAL;
|
|
// The next two ping intervals are at the ICE transport level.
|
|
//
|
|
// STRONG_PING_INTERVAL is applied when the selected connection is both
|
|
// writable and receiving.
|
|
//
|
|
// Default value of IceConfig.ice_check_interval_strong_connectivity.
|
|
extern const int STRONG_PING_INTERVAL;
|
|
// WEAK_PING_INTERVAL is applied when the selected connection is either
|
|
// not writable or not receiving.
|
|
//
|
|
// Defaul value of IceConfig.ice_check_interval_weak_connectivity.
|
|
extern const int WEAK_PING_INTERVAL;
|
|
// The next two ping intervals are at the candidate pair level.
|
|
//
|
|
// Writable candidate pairs are pinged at a slower rate once they are stabilized
|
|
// and the channel is strongly connected.
|
|
extern const int STRONG_AND_STABLE_WRITABLE_CONNECTION_PING_INTERVAL;
|
|
// Writable candidate pairs are pinged at a faster rate while the connections
|
|
// are stabilizing or the channel is weak.
|
|
extern const int WEAK_OR_STABILIZING_WRITABLE_CONNECTION_PING_INTERVAL;
|
|
// Default value of IceConfig.backup_connection_ping_interval
|
|
extern const int BACKUP_CONNECTION_PING_INTERVAL;
|
|
// Defualt value of IceConfig.receiving_switching_delay.
|
|
extern const int RECEIVING_SWITCHING_DELAY;
|
|
// Default value of IceConfig.regather_on_failed_networks_interval.
|
|
extern const int REGATHER_ON_FAILED_NETWORKS_INTERVAL;
|
|
// Default vaule of IceConfig.ice_unwritable_timeout.
|
|
extern const int CONNECTION_WRITE_CONNECT_TIMEOUT;
|
|
// Default vaule of IceConfig.ice_unwritable_min_checks.
|
|
extern const uint32_t CONNECTION_WRITE_CONNECT_FAILURES;
|
|
// Default value of IceConfig.stun_keepalive_interval;
|
|
extern const int STUN_KEEPALIVE_INTERVAL;
|
|
|
|
// The following constants are used at the candidate pair level to determine the
|
|
// state of a candidate pair.
|
|
//
|
|
// The timeout duration when a connection does not receive anything.
|
|
extern const int WEAK_CONNECTION_RECEIVE_TIMEOUT;
|
|
// A connection will be declared dead if it has not received anything for this
|
|
// long.
|
|
extern const int DEAD_CONNECTION_RECEIVE_TIMEOUT;
|
|
// The length of time we wait before timing out writability on a connection.
|
|
extern const int CONNECTION_WRITE_TIMEOUT;
|
|
// This is the length of time that we wait for a ping response to come back.
|
|
extern const int CONNECTION_RESPONSE_TIMEOUT;
|
|
// The minimum time we will wait before destroying a connection after creating
|
|
// it.
|
|
extern const int MIN_CONNECTION_LIFETIME;
|
|
|
|
} // namespace cricket
|
|
|
|
#endif // P2P_BASE_P2PCONSTANTS_H_
|