Utilitary stuff.
More...
#include <smolrtsp/option.h>
#include <smolrtsp/types/error.h>
#include <stdint.h>
#include <slice99.h>
Go to the source code of this file.
|
#define | SMOLRTSP_CRLF (CharSlice99_from_str("\r\n")) |
| Carriage-return + new-line represented as a data slice.
|
|
#define | SMOLRTSP_DEFAULT_PORT 554 |
| The default RTSP port.
|
|
◆ SmolRTSP_LowerTransport
An RTSP lower transport.
Enumerator |
---|
SmolRTSP_LowerTransport_TCP | TCP.
|
SmolRTSP_LowerTransport_UDP | UDP.
|
◆ SMOLRTSP_DEF_OPTION() [1/2]
Defines SmolRTSP_ChannelPairOption
.
See Datatype99 for the macro usage.
◆ SMOLRTSP_DEF_OPTION() [2/2]
Defines SmolRTSP_PortPairOption
.
See Datatype99 for the macro usage.
◆ smolrtsp_interleaved_header()
uint32_t smolrtsp_interleaved_header |
( |
uint8_t |
channel_id, |
|
|
uint16_t |
payload_len |
|
) |
| |
◆ smolrtsp_parse_interleaved_header()
void smolrtsp_parse_interleaved_header |
( |
const uint8_t |
data[restrict static 4], |
|
|
uint8_t *restrict |
channel_id, |
|
|
uint16_t *restrict |
payload_len |
|
) |
| |
Parses an four-octet interleaved binary data header data
.
- Parameters
-
[in] | data | The header to parse. |
[out] | channel_id | The one-byte channel identifier. |
[out] | payload_len | The length of the encapsulated binary data (host byte order). |
- Precondition
channel_id != NULL
-
payload_len != NULL
- See also
- https://datatracker.ietf.org/doc/html/rfc2326#section-10.12
◆ smolrtsp_parse_transport()
Parses the Transport
header.
- Parameters
-
[out] | config | The result of parsing. It remains unchanged on failure. |
[in] | header_value | The value of the Transport header. |
- Returns
- 0 on success, -1 on failure.
- Precondition
config != NULL