Add experiment to use ::recvmsg to receive packets on posix systems
Using ::recvmsg ensure packet timestamp can then be read directly when reading the buffer
instead of a separate system call and should also work on Ios/Mac.
The same experiment field trial flag will be "WebRTC-SCM-Timestamp/enabled/" and is also planned to be used for fixing webrtc:14066
Bug: webrtc:5773, webrtc:14066
Change-Id: I8a3749e87c686aa18fcee947472c1b602a0f63c8
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/279280
Reviewed-by: Evan Shrubsole <eshr@webrtc.org>
Commit-Queue: Per Kjellander <perkj@webrtc.org>
Reviewed-by: Jonas Oreland <jonaso@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38585}
diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn
index b171b16..c5b9024 100644
--- a/rtc_base/BUILD.gn
+++ b/rtc_base/BUILD.gn
@@ -961,6 +961,7 @@
"../api/task_queue",
"../api/task_queue:pending_task_safety_flag",
"../api/units:time_delta",
+ "../system_wrappers:field_trial",
"synchronization:mutex",
"system:no_unique_address",
"system:rtc_export",
@@ -1498,6 +1499,7 @@
":timeutils",
"../api/units:time_delta",
"../system_wrappers",
+ "../test:field_trial",
"../test:fileutils",
"../test:test_main",
"../test:test_support",