Skip to content

Commit f1f2dd4

Browse files
authored
[docs] Reorganized and cleaned up the docs folder (Haivision#1911)
1 parent d5f1d08 commit f1f2dd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+174
-159
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Submit a pull request at any time, whether an issue has been created or not. It
2121
* SRT protocol definitions
2222
* portability and platform-specific parts
2323

24-
Please follow the [Developer's guide](./docs/DevelopersGuide.md).
24+
Please follow the [SRT Developer's Guide](docs/dev/developers-guide.md).
2525

2626
## Code Style
2727

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ As audio/video packets are streamed from a source to a destination device, SRT d
3434
### Guides
3535

3636
* [SRT API Documents](docs/API/)
37-
* [Using the `srt-live-transmit` App](docs/srt-live-transmit.md)
38-
* [Developer's Guide](docs/DevelopersGuide.md)
37+
* [Using the `srt-live-transmit` App](docs/apps/srt-live-transmit.md)
38+
* [SRT Developer's Guide](docs/dev/developers-guide.md)
3939
* [Contributing](CONTRIBUTING.md)
40-
* [Reporting problems](docs/reporting.md)
40+
* [Reporting Issues](docs/dev/making-srt-better.md)
4141
* SRT RFC: [Latest IETF Draft](https://datatracker.ietf.org/doc/html/draft-sharabayko-srt-00), [Latest Working Copy](https://haivision.github.io/srt-rfc/draft-sharabayko-srt.html), [GitHub Repo](https://github.com/Haivision/srt-rfc)
4242
* SRT CookBook: [Website](https://srtlab.github.io/srt-cookbook), [GitHub Repo](https://github.com/SRTLab/srt-cookbook)
4343
* [SRT Protocol Technical Overview](https://github.com/Haivision/srt/files/2489142/SRT_Protocol_TechnicalOverview_DRAFT_2018-10-17.pdf)
44-
* [Why SRT Was Created](docs/why-srt-was-created.md)
44+
* [Why SRT Was Created](docs/misc/why-srt-was-created.md)
4545

4646
## Requirements
4747

@@ -50,7 +50,7 @@ As audio/video packets are streamed from a source to a destination device, SRT d
5050
* OpenSSL
5151
* Pthreads (for POSIX systems it's builtin, for Windows there's a library)
5252

53-
For detailed description of the build system and options, please read [BuildOptions.md](docs/BuildOptions.md).
53+
For detailed description of the build system and options, please read [SRT Build Options](docs/build/build-options.md).
5454

5555
### Build on Linux
5656

@@ -127,7 +127,7 @@ make
127127

128128
### Build on Windows
129129

130-
Follow the [Windows build instructions](docs/build-win.md).
130+
Follow the [Building SRT for Windows](docs/build/build-win.md) instructions.
131131

132132
[appveyor-badge]: https://img.shields.io/appveyor/ci/Haivision/srt/master.svg?label=Windows
133133
[appveyor]: https://ci.appveyor.com/project/Haivision/srt

docs/API/API-functions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ The following options are allowed to be set on the member socket:
15071507
* [srt_setsockopt, srt_setsockflag](#srt_setsockopt-srt_setsockflag)
15081508
* [srt_getversion](#srt_getversion)
15091509

1510-
**NOTE**: For more information, see [Getting and Setting Options](API-socket-options.md#getting-and-setting-options).
1510+
**NOTE**: For more information, see [SRT API Socket Options, Getting and Setting Options](API-socket-options.md#getting-and-setting-options).
15111511

15121512
### srt_getpeername
15131513
```
@@ -1732,8 +1732,8 @@ call [`srt_sendmsg2`](#srt_sendmsg) or [`srt_recvmsg2`](#srt_recvmsg2) function
17321732
for a group, you should pass an array here so that you can retrieve the status of
17331733
particular member sockets. If you pass an array that is too small, your `grpdata_size`
17341734
field will be rewritten with the current number of members, but without filling in
1735-
the array. For details, see the (Bonding introduction)[../bonding-intro.md] and
1736-
(Socket Groups)[../socket-groups.md] documents.
1735+
the array. For details, see the [SRT Connection Bonding](../features/bonding-intro.md) and
1736+
[SRT Socket Groups](../features/socket-groups.md) documents.
17371737

17381738
**Helpers for [`SRT_MSGCTRL`](#SRT_MSGCTRL):**
17391739

docs/API/API-socket-options.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ complete (not all packets received or there was a packet loss) it will not be
796796
copied to the application's buffer. Messages that are sent later, but were
797797
earlier reassembled by the receiver, will be delivered once ready, if the
798798
`inorder` flag was set to false.
799-
See [`srt_sendmsg`](API.md#sending-and-receiving)).
799+
See [`srt_sendmsg`](API.md#sending-and-receiving).
800800

801801
As a comparison to the standard system protocols, the Stream API does
802802
transmission similar to TCP, whereas the Message API functions like the
@@ -920,7 +920,7 @@ The connection will be rejected with `SRT_REJ_FILTER` code in the following case
920920
In case of the built-in `fec` filter, the mandatory parameter is `cols`, all
921921
others have their default values. For example, the configuration specified
922922
as `fec,cols:10` is `fec,cols:10,rows:1,arq:onreq,layout:even`. See how to
923-
[configure the FEC Filter](packet-filtering-and-fec.md#configuring-the-fec-filter).
923+
configure the FEC filter in [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md#configuring-the-fec-filter).
924924

925925
Below in the table are examples for the built-in `fec` filter. Note that the
926926
negotiated config need not have parameters in the given order.
@@ -950,7 +950,7 @@ Reading this option after the connection is established will return the full
950950
configuration that has been agreed upon by both parties (including default
951951
values).
952952

953-
For details, see [Packet Filtering & FEC](packet-filtering-and-fec.md).
953+
For details, see [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md).
954954

955955
[Return to list](#list-of-options)
956956

@@ -1455,7 +1455,7 @@ will be able to retrieve this stream ID from the socket that is returned from
14551455
`srt_accept` (for a connected socket with that stream ID). You usually use SET
14561456
on the socket used for `srt_connect`, and GET on the socket retrieved from
14571457
`srt_accept`. This string can be used completely free-form. However, it's highly
1458-
recommended to follow the [SRT Access Control guidlines](../AccessControl.md).
1458+
recommended to follow the [SRT Access Control (Stream ID) Guidlines](../features/access-control.md).
14591459

14601460
- As this uses internally the `std::string` type, there are additional functions
14611461
for it in the legacy/C++ API (udt.h): `srt::setstreamid` and `srt::getstreamid`.

docs/API/API.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ nb = srt_recvmsg2(u, buf, nb, &mc);
281281
### Transmission Types Available in SRT
282282

283283
Mode settings determine how the sender and receiver functions work. The main
284-
[socket options](API-socket-options.md) that control it are:
284+
SRT [socket options](API-socket-options.md) that control it are:
285285

286286
- `SRTO_TRANSTYPE`. Sets several parameters in accordance with the selected
287287
mode:
@@ -519,7 +519,7 @@ either `FASTREXMIT` or `LATEREXMIT`. This will be explained below.
519519

520520
### Transmission Method: Live
521521

522-
Setting `SRTO_TRANSTYPE` to `SRTT_LIVE` sets the following [parameters](API-socket-options.md):
522+
Setting `SRTO_TRANSTYPE` to `SRTT_LIVE` sets the following [socket options](API-socket-options.md):
523523

524524
- `SRTO_TSBPDMODE` = true
525525
- `SRTO_RCVLATENCY` = 120
@@ -596,7 +596,7 @@ NAKREPORT method is considered so effective that FASTREXMIT isn't necessary.
596596

597597
### Transmission Method: Buffer
598598

599-
Setting `SRTO_TRANSTYPE` to `SRTT_FILE` sets the following [parameters](API-socket-options.md):
599+
Setting `SRTO_TRANSTYPE` to `SRTT_FILE` sets the following [socket options](API-socket-options.md):
600600

601601
- `SRTO_TSBPDMODE` = false
602602
- `SRTO_RCVLATENCY` = 0

docs/API/statistics.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -246,29 +246,29 @@ The total number of packets that failed to be decrypted at the receiver side. Av
246246

247247
#### pktSndFilterExtraTotal
248248

249-
The total number of packet filter control packets generated by the packet filter (refer to [SRT Packet Filtering & FEC](../packet-filtering-and-fec.md)). Available for sender.
249+
The total number of packet filter control packets generated by the packet filter (refer to [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md)). Available for sender.
250250

251251
Packet filter control packets contain only control information necessary for the packet filter. The type of these packets is DATA.
252252

253253
If the `SRTO_PACKETFILTER` socket option is disabled (refer to [SRT API Socket Options](API-socket-options.md)), this statistic is equal to 0. Introduced in SRT v1.4.0.
254254

255255
#### pktRcvFilterExtraTotal
256256

257-
The total number of packet filter control packets received by the packet filter (refer to [SRT Packet Filtering & FEC](../packet-filtering-and-fec.md)). Available for receiver.
257+
The total number of packet filter control packets received by the packet filter (refer to [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md)). Available for receiver.
258258

259259
Packet filter control packets contain only control information necessary for the packet filter. The type of these packets is DATA.
260260

261261
If the `SRTO_PACKETFILTER` socket option is disabled (refer to [SRT API Socket Options](API-socket-options.md)), this statistic is equal to 0. Introduced in SRT v1.4.0.
262262

263263
#### pktRcvFilterSupplyTotal
264264

265-
The total number of lost DATA packets recovered by the packet filter at the receiver side (e.g., FEC rebuilt packets; refer to [SRT Packet Filtering & FEC](../packet-filtering-and-fec.md)). Available for receiver.
265+
The total number of lost DATA packets recovered by the packet filter at the receiver side (e.g., FEC rebuilt packets; refer to [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md)). Available for receiver.
266266

267267
If the `SRTO_PACKETFILTER` socket option is disabled (refer to [SRT API Socket Options](API-socket-options.md)), this statistic is equal to 0. Introduced in SRT v1.4.0.
268268

269269
#### pktRcvFilterLossTotal
270270

271-
The total number of lost DATA packets **not** recovered by the packet filter at the receiver side (refer to [SRT Packet Filtering & FEC](../packet-filtering-and-fec.md)). Available for receiver.
271+
The total number of lost DATA packets **not** recovered by the packet filter at the receiver side (refer to [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md)). Available for receiver.
272272

273273
If the `SRTO_PACKETFILTER` socket option is disabled (refer to [SRT API Socket Options](API-socket-options.md)), this statistic is equal to 0. Introduced in SRT v1.4.0.
274274

@@ -363,25 +363,25 @@ Same as [pktRecvNAKTotal](#pktRecvNAKTotal), but for a specified interval.
363363

364364
Same as [pktSndFilterExtraTotal](#pktSndFilterExtraTotal), but for a specified interval.
365365

366-
Introduced in v1.4.0. Refer to [SRT Packet Filtering & FEC](../packet-filtering-and-fec.md).
366+
Introduced in v1.4.0. Refer to [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md).
367367

368368
#### pktRcvFilterExtra
369369

370370
Same as [pktRcvFilterExtraTotal](#pktRcvFilterExtraTotal), but for a specified interval.
371371

372-
Introduced in v1.4.0. Refer to [SRT Packet Filtering & FEC](../packet-filtering-and-fec.md).
372+
Introduced in v1.4.0. Refer to [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md).
373373

374374
#### pktRcvFilterSupply
375375

376376
Same as [pktRcvFilterSupplyTotal](#pktRcvFilterSupplyTotal), but for a specified interval.
377377

378-
Introduced in v1.4.0. Refer to [SRT Packet Filtering & FEC](../packet-filtering-and-fec.md).
378+
Introduced in v1.4.0. Refer to [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md).
379379

380380
#### pktRcvFilterLoss
381381

382382
Same as [pktRcvFilterLossTotal](#pktRcvFilterLossTotal), but for a specified interval.
383383

384-
Introduced in v1.4.0. Refer to [SRT Packet Filtering & FEC](../packet-filtering-and-fec.md).
384+
Introduced in v1.4.0. Refer to [SRT Packet Filtering & FEC](../features/packet-filtering-and-fec.md).
385385

386386
#### mbpsSendRate
387387

@@ -727,12 +727,12 @@ that is received late.
727727

728728
SRT group statistics are implemented for SRT Connection Bonding feature and available since SRT v1.5.0. Check the following documentation and code examples for details:
729729

730-
- [Introduction in SRT Connection Bonding feature](../bonding-intro.md),
731-
- [The concept of socket groups](../socket-groups.md). Here you will also find the information regarding `srt-test-live` application for testing Connection Bonding,
730+
- Introduction in [SRT Connection Bonding](../features/bonding-intro.md),
731+
- The concept of [SRT Socket Groups](../features/socket-groups.md). Here you will also find the information regarding the `srt-test-live` application for testing Connection Bonding,
732732
- Check also [SRT API](API.md) and [SRT API Functions](API-functions.md) documentation for Connection Bonding related updates,
733733
- Code examples: simple [client](https://github.com/Haivision/srt/blob/master/examples/test-c-client-bonding.c) and [server](https://github.com/Haivision/srt/blob/master/examples/test-c-server-bonding.c) implementation.
734734

735-
`srt_bistats(SRTSOCKET u, ...)` function can be used with a socket group ID as a first argument to get statistics for a group. Most values of the `SRT_TRACEBSTATS` will be filled with zeros except for the fields listed in [Summary Table](#group-summary-table) below. Refer to the documentation of the [API functions](API-functions.md) for usage instructions.
735+
`srt_bistats(SRTSOCKET u, ...)` function can be used with a socket group ID as a first argument to get statistics for a group. Most values of the `SRT_TRACEBSTATS` will be filled with zeros except for the fields listed in [Summary Table](#group-summary-table) below. Refer to the documentation of the [SRT API Functions](API-functions.md) for usage instructions.
736736

737737
### Summary Table <a name="group-summary-table"></a>
738738

0 commit comments

Comments
 (0)