Skip to content

Commit

Permalink
sctp: Add DcsctpTransport based on dcSCTP
Browse files Browse the repository at this point in the history
Bug: webrtc:12614
Change-Id: Ie710621610fff9f8bb6c7d800419675892d6a70c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215680
Commit-Queue: Florent Castelli <[email protected]>
Reviewed-by: Harald Alvestrand <[email protected]>
Reviewed-by: Victor Boivie <[email protected]>
Cr-Commit-Position: refs/heads/master@{#33935}
  • Loading branch information
Orphis authored and WebRTC LUCI CQ committed May 6, 2021
1 parent 7b1734a commit a6983c6
Show file tree
Hide file tree
Showing 9 changed files with 683 additions and 17 deletions.
43 changes: 42 additions & 1 deletion media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,36 @@ rtc_source_set("rtc_data_sctp_transport_internal") {
]
}

if (rtc_build_dcsctp) {
rtc_library("rtc_data_dcsctp_transport") {
sources = [
"sctp/dcsctp_transport.cc",
"sctp/dcsctp_transport.h",
]
deps = [
":rtc_data_sctp_transport_internal",
"../api:array_view",
"../media:rtc_media_base",
"../net/dcsctp/public:socket",
"../net/dcsctp/public:types",
"../net/dcsctp/socket:dcsctp_socket",
"../net/dcsctp/timer:task_queue_timeout",
"../p2p:rtc_p2p",
"../rtc_base:checks",
"../rtc_base:rtc_base_approved",
"../rtc_base:threading",
"../rtc_base/task_utils:pending_task_safety_flag",
"../rtc_base/task_utils:to_queued_task",
"../rtc_base/third_party/sigslot:sigslot",
"../system_wrappers",
]
absl_deps += [
"//third_party/abseil-cpp/absl/strings:strings",
"//third_party/abseil-cpp/absl/types:optional",
]
}
}

if (rtc_build_usrsctp) {
rtc_library("rtc_data_usrsctp_transport") {
defines = [
Expand Down Expand Up @@ -426,11 +456,22 @@ rtc_library("rtc_data_sctp_transport_factory") {
":rtc_data_sctp_transport_internal",
"../api/transport:sctp_transport_factory_interface",
"../rtc_base:threading",
"../rtc_base/experiments:field_trial_parser",
"../rtc_base/system:unused",
]

if (rtc_enable_sctp) {
assert(rtc_build_usrsctp, "An SCTP backend is required to enable SCTP")
assert(rtc_build_dcsctp || rtc_build_usrsctp,
"An SCTP backend is required to enable SCTP")
}

if (rtc_build_dcsctp) {
defines += [ "WEBRTC_HAVE_DCSCTP" ]
deps += [
":rtc_data_dcsctp_transport",
"../system_wrappers",
"../system_wrappers:field_trial",
]
}

if (rtc_build_usrsctp) {
Expand Down
1 change: 1 addition & 0 deletions media/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include_rules = [
"+modules/video_capture",
"+modules/video_coding",
"+modules/video_coding/utility",
"+net/dcsctp",
"+p2p",
"+sound",
"+system_wrappers",
Expand Down
Loading

0 comments on commit a6983c6

Please sign in to comment.