Dactyloidae/media/mtransport
2026-04-17 15:05:11 -07:00
..
build Issue #61 - Reinstate buildability with shared gkmedias dll 2023-03-28 12:07:03 +08:00
test Add support for compiling under MinGW + fix Windows compiling in general 2026-04-17 15:05:11 -07:00
testlib Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
third_party Add support for compiling under MinGW + fix Windows compiling in general 2026-04-17 15:05:11 -07:00
common.build Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
databuffer.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
dtlsidentity.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
dtlsidentity.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
logging.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
m_cpp_utils.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
moz.build Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
nr_socket_prsock.cpp Issue #1991 - Support TURN TLS Support in WebRTC Backport of Mozilla bug 1056934 2022-09-01 10:18:07 +08:00
nr_socket_prsock.h Issue #1991 - Support TURN TLS Support in WebRTC Backport of Mozilla bug 1056934 2022-09-01 10:18:07 +08:00
nr_timer.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nricectx.cpp Issue #1991 - Support TURN TLS Support in WebRTC Backport of Mozilla bug 1056934 2022-09-01 10:18:07 +08:00
nricectx.h Issue #1991 - Support TURN TLS Support in WebRTC Backport of Mozilla bug 1056934 2022-09-01 10:18:07 +08:00
nricectxhandler.cpp import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
nricectxhandler.h import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
nricemediastream.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nricemediastream.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nriceresolver.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nriceresolver.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nriceresolverfake.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nriceresolverfake.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nrinterfaceprioritizer.cpp Add support for compiling under MinGW + fix Windows compiling in general 2026-04-17 15:05:11 -07:00
nrinterfaceprioritizer.h import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
README import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
rlogconnector.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
rlogconnector.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
runnable_utils.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
sigslot.h import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
simpletokenbucket.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
simpletokenbucket.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
stun_socket_filter.cpp import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
stun_socket_filter.h import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
test_nr_socket.cpp Issue #1991 - Support TURN TLS Support in WebRTC Backport of Mozilla bug 1056934 2022-09-01 10:18:07 +08:00
test_nr_socket.h Issue #1991 - Support TURN TLS Support in WebRTC Backport of Mozilla bug 1056934 2022-09-01 10:18:07 +08:00
transportflow.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportflow.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayer.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayer.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerdtls.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerdtls.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerice.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerice.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerlog.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerlog.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerloopback.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerloopback.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerprsock.cpp Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
transportlayerprsock.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00

This is a generic media transport system for WebRTC.

The basic model is that you have a TransportFlow which contains a
series of TransportLayers, each of which gets an opportunity to
manipulate data up and down the stack (think SysV STREAMS or a
standard networking stack). You can also address individual
sublayers to manipulate them or to bypass reading and writing
at an upper layer; WebRTC uses this to implement DTLS-SRTP.


DATAFLOW MODEL
Unlike the existing nsSocket I/O system, this is a push rather
than a pull system. Clients of the interface do writes downward
with SendPacket() and receive notification of incoming packets
via callbacks registed via sigslot.h. It is the responsibility
of the bottom layer (or any other layer which needs to reference
external events) to arrange for that somehow; typically by
using nsITimer or the SocketTansportService.

This sort of push model is a much better fit for the demands
of WebRTC, expecially because ICE contexts span multiple
network transports.


THREADING MODEL
There are no thread locks. It is the responsibility of the caller to
arrange that any given TransportLayer/TransportFlow is only
manipulated in one thread at once. One good way to do this is to run
everything on the STS thread. Many of the existing layer implementations
(TransportLayerPrsock, TransportLayerIce, TransportLayerLoopback)
already run on STS so in those cases you must run on STS, though
you can do setup on the main thread and then activate them on the
STS.


EXISTING TRANSPORT LAYERS
The following transport layers are currently implemented:

* DTLS -- a wrapper around NSS's DTLS [RFC 6347] stack
* ICE  -- a wrapper around the nICEr ICE [RFC 5245] stack.
* Prsock -- a wrapper around NSPR sockets
* Loopback -- a loopback IO mechanism
* Logging -- a passthrough that just logs its data

The last three are primarily for debugging.