Loading...
Searching...
No Matches
roq.h
Go to the documentation of this file.
1
65#ifndef IMQUIC_ROQ_H
66#define IMQUIC_ROQ_H
67
68#include "imquic.h"
69
73
100imquic_server *imquic_create_roq_server(const char *name, ...);
129imquic_client *imquic_create_roq_client(const char *name, ...);
130
139 void (* new_roq_connection)(imquic_connection *conn, void *user_data));
147 void (* rtp_incoming)(imquic_connection *conn, uint64_t flow_id, uint8_t *bytes, size_t blen));
154 void (* roq_connection_gone)(imquic_connection *conn));
156
168
172
187 uint64_t flow_id, uint8_t *bytes, size_t blen, gboolean close_stream);
189
190#endif
imquic public interface (headers)
struct imquic_network_endpoint imquic_client
Definition imquic.h:153
struct imquic_network_endpoint imquic_endpoint
Definition imquic.h:154
struct imquic_network_endpoint imquic_server
Definition imquic.h:152
struct imquic_connection imquic_connection
Definition imquic.h:151
imquic_client * imquic_create_roq_client(const char *name,...)
Method to create a new RoQ client, using variable arguments to dictate what the client should do (e....
Definition imquic-roq.c:103
const char * imquic_roq_multiplexing_str(imquic_roq_multiplexing type)
Helper function to serialize to string the name of a imquic_roq_multiplexing property.
Definition imquic-roq.c:218
void imquic_set_roq_connection_gone_cb(imquic_endpoint *endpoint, void(*roq_connection_gone)(imquic_connection *conn))
Configure the callback function to be notified when an existing RoQ connection handled by this endpoi...
Definition imquic-roq.c:206
imquic_roq_multiplexing
RTP Over QUIC multiplexing modes.
Definition roq.h:158
@ IMQUIC_ROQ_STREAM
One or more RTP packets over a STREAM.
Definition roq.h:162
@ IMQUIC_ROQ_DATAGRAM
RTP packet over DATAGRAM.
Definition roq.h:160
size_t imquic_roq_send_rtp(imquic_connection *conn, imquic_roq_multiplexing multiplexing, uint64_t flow_id, uint8_t *bytes, size_t blen, gboolean close_stream)
Helper to send RTP packets over QUIC, using one of the supported imquic_roq_multiplexing modes....
void imquic_set_new_roq_connection_cb(imquic_endpoint *endpoint, void(*new_roq_connection)(imquic_connection *conn, void *user_data))
Configure the callback function to be notified about new RoQ connections on the configured endpoint....
Definition imquic-roq.c:184
imquic_server * imquic_create_roq_server(const char *name,...)
Method to create a new RoQ server, using variable arguments to dictate what the server should do (e....
Definition imquic-roq.c:20
void imquic_set_rtp_incoming_cb(imquic_endpoint *endpoint, void(*rtp_incoming)(imquic_connection *conn, uint64_t flow_id, uint8_t *bytes, size_t blen))
Configure the callback function to be notified about incoming RTP packets, independently of the multi...
Definition imquic-roq.c:195