|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 30-Mar-2022 | - |
| build/ | H | 30-Mar-2022 | - | 45 | 38 |
| fuzztest/ | H | 30-Mar-2022 | - | 68 | 45 |
| ipc/ | H | 30-Mar-2022 | - | 1,980 | 1,380 |
| mdns_service/ | H | 30-Mar-2022 | - | 887 | 765 |
| srtp/ | H | 30-Mar-2022 | - | 17 | 12 |
| test/ | H | 30-Mar-2022 | - | 12,178 | 9,352 |
| third_party/ | H | 30-Mar-2022 | - | 35,815 | 23,170 |
| README | H A D | 30-Mar-2022 | 1.8 KiB | 46 | 33 |
| SrtpFlow.cpp | H A D | 30-Mar-2022 | 7.3 KiB | 260 | 194 |
| SrtpFlow.h | H A D | 30-Mar-2022 | 2.1 KiB | 70 | 43 |
| WebrtcTCPSocketWrapper.cpp | H A D | 30-Mar-2022 | 4.5 KiB | 126 | 94 |
| WebrtcTCPSocketWrapper.h | H A D | 30-Mar-2022 | 2.2 KiB | 70 | 34 |
| common.build | H A D | 30-Mar-2022 | 3.3 KiB | 95 | 88 |
| dtlsidentity.cpp | H A D | 30-Mar-2022 | 9.9 KiB | 329 | 249 |
| dtlsidentity.h | H A D | 30-Mar-2022 | 3.4 KiB | 102 | 63 |
| logging.h | H A D | 30-Mar-2022 | 2.5 KiB | 66 | 46 |
| m_cpp_utils.h | H A D | 30-Mar-2022 | 708 | 26 | 11 |
| mediapacket.cpp | H A D | 30-Mar-2022 | 3.5 KiB | 143 | 108 |
| mediapacket.h | H A D | 30-Mar-2022 | 2.9 KiB | 116 | 78 |
| moz.build | H A D | 30-Mar-2022 | 747 | 24 | 18 |
| nr_socket_proxy_config.cpp | H A D | 30-Mar-2022 | 1.1 KiB | 37 | 22 |
| nr_socket_proxy_config.h | H A D | 30-Mar-2022 | 1.2 KiB | 42 | 20 |
| nr_socket_prsock.cpp | H A D | 30-Mar-2022 | 50.5 KiB | 1,784 | 1,272 |
| nr_socket_prsock.h | H A D | 30-Mar-2022 | 10.7 KiB | 321 | 203 |
| nr_socket_tcp.cpp | H A D | 30-Mar-2022 | 8.2 KiB | 311 | 189 |
| nr_socket_tcp.h | H A D | 30-Mar-2022 | 3.7 KiB | 118 | 51 |
| nr_timer.cpp | H A D | 30-Mar-2022 | 7.7 KiB | 256 | 140 |
| nricectx.cpp | H A D | 30-Mar-2022 | 32.6 KiB | 1,113 | 806 |
| nricectx.h | H A D | 30-Mar-2022 | 12.9 KiB | 423 | 254 |
| nricemediastream.cpp | H A D | 30-Mar-2022 | 21.6 KiB | 717 | 532 |
| nricemediastream.h | H A D | 30-Mar-2022 | 7.5 KiB | 226 | 110 |
| nriceresolver.cpp | H A D | 30-Mar-2022 | 7.4 KiB | 235 | 157 |
| nriceresolver.h | H A D | 30-Mar-2022 | 4.1 KiB | 124 | 66 |
| nriceresolverfake.cpp | H A D | 30-Mar-2022 | 5.2 KiB | 176 | 96 |
| nriceresolverfake.h | H A D | 30-Mar-2022 | 4.3 KiB | 139 | 77 |
| nricestunaddr.cpp | H A D | 30-Mar-2022 | 2.9 KiB | 95 | 69 |
| nricestunaddr.h | H A D | 30-Mar-2022 | 1 KiB | 37 | 20 |
| nrinterfaceprioritizer.cpp | H A D | 30-Mar-2022 | 7 KiB | 259 | 205 |
| nrinterfaceprioritizer.h | H A D | 30-Mar-2022 | 454 | 19 | 10 |
| rlogconnector.cpp | H A D | 30-Mar-2022 | 5.1 KiB | 187 | 137 |
| rlogconnector.h | H A D | 30-Mar-2022 | 4.3 KiB | 128 | 41 |
| runnable_utils.h | H A D | 30-Mar-2022 | 6.4 KiB | 222 | 170 |
| sigslot.h | H A D | 30-Mar-2022 | 20.7 KiB | 620 | 403 |
| simpletokenbucket.cpp | H A D | 30-Mar-2022 | 2 KiB | 61 | 31 |
| simpletokenbucket.h | H A D | 30-Mar-2022 | 1.4 KiB | 55 | 19 |
| stun_socket_filter.cpp | H A D | 30-Mar-2022 | 14.1 KiB | 433 | 335 |
| stun_socket_filter.h | H A D | 30-Mar-2022 | 1.4 KiB | 42 | 28 |
| test_nr_socket.cpp | H A D | 30-Mar-2022 | 37.3 KiB | 1,140 | 827 |
| test_nr_socket.h | H A D | 30-Mar-2022 | 13.3 KiB | 372 | 189 |
| transportflow.cpp | H A D | 30-Mar-2022 | 2.1 KiB | 79 | 46 |
| transportflow.h | H A D | 30-Mar-2022 | 3.1 KiB | 106 | 42 |
| transportlayer.cpp | H A D | 30-Mar-2022 | 1.4 KiB | 52 | 33 |
| transportlayer.h | H A D | 30-Mar-2022 | 3.2 KiB | 111 | 58 |
| transportlayerdtls.cpp | H A D | 30-Mar-2022 | 45.9 KiB | 1,561 | 1,213 |
| transportlayerdtls.h | H A D | 30-Mar-2022 | 6 KiB | 191 | 127 |
| transportlayerice.cpp | H A D | 30-Mar-2022 | 6 KiB | 184 | 100 |
| transportlayerice.h | H A D | 30-Mar-2022 | 1.7 KiB | 65 | 34 |
| transportlayerlog.cpp | H A D | 30-Mar-2022 | 1.5 KiB | 50 | 31 |
| transportlayerlog.h | H A D | 30-Mar-2022 | 1 KiB | 40 | 20 |
| transportlayerloopback.cpp | H A D | 30-Mar-2022 | 3.4 KiB | 123 | 83 |
| transportlayerloopback.h | H A D | 30-Mar-2022 | 2.6 KiB | 114 | 72 |
| transportlayersrtp.cpp | H A D | 30-Mar-2022 | 6.8 KiB | 224 | 166 |
| transportlayersrtp.h | H A D | 30-Mar-2022 | 1.1 KiB | 44 | 25 |
README
1This is a generic media transport system for WebRTC.
2
3The basic model is that you have a TransportFlow which contains a
4series of TransportLayers, each of which gets an opportunity to
5manipulate data up and down the stack (think SysV STREAMS or a
6standard networking stack). You can also address individual
7sublayers to manipulate them or to bypass reading and writing
8at an upper layer; WebRTC uses this to implement DTLS-SRTP.
9
10
11DATAFLOW MODEL
12Unlike the existing nsSocket I/O system, this is a push rather
13than a pull system. Clients of the interface do writes downward
14with SendPacket() and receive notification of incoming packets
15via callbacks registed via sigslot.h. It is the responsibility
16of the bottom layer (or any other layer which needs to reference
17external events) to arrange for that somehow; typically by
18using nsITimer or the SocketTansportService.
19
20This sort of push model is a much better fit for the demands
21of WebRTC, expecially because ICE contexts span multiple
22network transports.
23
24
25THREADING MODEL
26There are no thread locks. It is the responsibility of the caller to
27arrange that any given TransportLayer/TransportFlow is only
28manipulated in one thread at once. One good way to do this is to run
29everything on the STS thread. Many of the existing layer implementations
30(TransportLayerIce, TransportLayerLoopback) already run on STS so in those
31cases you must run on STS, though you can do setup on the main thread and
32then activate them on the STS.
33
34
35EXISTING TRANSPORT LAYERS
36The following transport layers are currently implemented:
37
38* DTLS -- a wrapper around NSS's DTLS [RFC 6347] stack
39* ICE -- a wrapper around the nICEr ICE [RFC 5245] stack.
40* Loopback -- a loopback IO mechanism
41* Logging -- a passthrough that just logs its data
42
43The last two are primarily for debugging.
44
45
46