UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
c_basicRTSPOnlyServer.h File Reference
#include <pthread.h>
#include "control_socket.h"
#include "module.h"
#include "debug.h"
#include "rtsp/rtsp_utils.h"
#include "audio/types.h"
Include dependency graph for c_basicRTSPOnlyServer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rtsp_serv
 
struct  rtsp_server_parameters
 

Macros

#define EXTERNC   extern "C"
 

Typedefs

typedef EXTERNC struct rtsp_serv rtsp_serv_t
 

Functions

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

Macro Definition Documentation

◆ EXTERNC

#define EXTERNC   extern "C"

Definition at line 62 of file c_basicRTSPOnlyServer.h.

Typedef Documentation

◆ rtsp_serv_t

typedef EXTERNC struct rtsp_serv rtsp_serv_t

Function Documentation

◆ c_start_server()

EXTERNC 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()

EXTERNC 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().