UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
c_basicRTSPOnlyServer.cpp File Reference
#include <cassert>
#include "rtsp/c_basicRTSPOnlyServer.h"
#include "rtsp/BasicRTSPOnlyServer.hh"
Include dependency graph for c_basicRTSPOnlyServer.cpp:

Go to the source code of this file.

Functions

rtsp_serv_t * c_start_server (struct rtsp_server_parameters params)
 
void c_stop_server (rtsp_serv_t *server)
 

Function Documentation

◆ c_start_server()

rtsp_serv_t * c_start_server ( struct rtsp_server_parameters params)

Definition at line 51 of file c_basicRTSPOnlyServer.cpp.

52{
53 auto* server = (rtsp_serv_t*) malloc(sizeof(rtsp_serv_t));
54 server->params = params;
55 server->watch = 0;
56
57 int ret;
59 srv->init_server();
60 ret = pthread_create(&server->server_th, NULL, BasicRTSPOnlyServer::start_server, &server->watch);
61 assert(ret == 0);
62
63 return server;
64}
EXTERNC struct rtsp_serv rtsp_serv_t
static BasicRTSPOnlyServer * initInstance(struct rtsp_server_parameters params)
static void * start_server(void *args)
static struct @19 params[100]

References BasicRTSPOnlyServer::init_server(), BasicRTSPOnlyServer::initInstance(), params, and BasicRTSPOnlyServer::start_server().

Referenced by h264_rtp_video_rxtx::configure_rtsp_server_video(), and h264_rtp_video_rxtx::set_audio_spec().

Here is the call graph for this function:

◆ c_stop_server()

void c_stop_server ( rtsp_serv_t * server)

Definition at line 66 of file c_basicRTSPOnlyServer.cpp.

66 {
67 if (server == nullptr) {
68 return;
69 }
70 server->watch = 1;
71 pthread_join(server->server_th, nullptr);
72}

Referenced by h264_rtp_video_rxtx::join().