mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-19 08:37:54 +01:00

There are numerous identifiers and sequences in SCTP, all of them being unsigned 16 or 32-bit integers. * Stream identifiers * Payload Protocol Identifier (PPID) * Stream Sequence Numbers (SSN) * Message Identifiers (MID) * Fragment Sequence Numbers (FSN) * Transmission Sequence Numbers (TSN) The first two of these are publicly exposed in the API, and the remaining ones are never exposed to the client and are all part of SCTP protocol. Then there are some more not as common sequence numbers, and some booleans. Not all will be in internal_types.h - it depends on if they can be scoped to a specific component instead. And not all types will likely become strong types. The unwrapped sequence numbers have been renamed to not cause conflicts and the current UnwrappedSequenceNumber class doesn't support wrapping strongly typed integers as it can't reach into the type of the underlying integer. That's something to explore later. Bug: webrtc:12614 Change-Id: I4e0016be26d5d4826783d6e0962044f56cbfa97d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/213422 Commit-Queue: Victor Boivie <boivie@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33620}
58 lines
1.3 KiB
Text
58 lines
1.3 KiB
Text
# Copyright (c) 2021 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.
|
|
|
|
import("../../../webrtc.gni")
|
|
|
|
rtc_source_set("internal_types") {
|
|
sources = [ "internal_types.h" ]
|
|
}
|
|
|
|
rtc_source_set("math") {
|
|
deps = []
|
|
sources = [ "math.h" ]
|
|
}
|
|
|
|
rtc_source_set("pair_hash") {
|
|
deps = []
|
|
sources = [ "pair_hash.h" ]
|
|
}
|
|
|
|
rtc_source_set("sequence_numbers") {
|
|
deps = []
|
|
sources = [ "sequence_numbers.h" ]
|
|
}
|
|
|
|
rtc_source_set("str_join") {
|
|
deps = []
|
|
sources = [ "str_join.h" ]
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_library("dcsctp_common_unittests") {
|
|
testonly = true
|
|
|
|
defines = []
|
|
deps = [
|
|
":math",
|
|
":pair_hash",
|
|
":sequence_numbers",
|
|
":str_join",
|
|
"../../../api:array_view",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:gunit_helpers",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../../../test:test_support",
|
|
]
|
|
sources = [
|
|
"math_test.cc",
|
|
"pair_hash_test.cc",
|
|
"sequence_numbers_test.cc",
|
|
"str_join_test.cc",
|
|
]
|
|
}
|
|
}
|