UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
src
rtsp
c_basicRTSPOnlyServer.h
Go to the documentation of this file.
1
/*
2
* FILE: rtsp/c_basicRTSPOnlyServer.h
3
* AUTHORS: David Cassany <david.cassany@i2cat.net>
4
* Gerard Castillo <gerard.castillo@i2cat.net>
5
*
6
* Copyright (c) 2005-2010 Fundació i2CAT, Internet I Innovació Digital a Catalunya
7
*
8
* Redistribution and use in source and binary forms, with or without
9
* modification, is permitted provided that the following conditions
10
* are met:
11
*
12
* 1. Redistributions of source code must retain the above copyright
13
* notice, this list of conditions and the following disclaimer.
14
*
15
* 2. Redistributions in binary form must reproduce the above copyright
16
* notice, this list of conditions and the following disclaimer in the
17
* documentation and/or other materials provided with the distribution.
18
*
19
* 3. All advertising materials mentioning features or use of this software
20
* must display the following acknowledgement:
21
*
22
* This product includes software developed by the Fundació i2CAT,
23
* Internet I Innovació Digital a Catalunya. This product also includes
24
* software developed by CESNET z.s.p.o.
25
*
26
* 4. Neither the name of the University nor of the Institute may be used
27
* to endorse or promote products derived from this software without
28
* specific prior written permission.
29
*
30
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
31
* "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
32
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
33
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
34
* EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
35
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
39
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
40
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
41
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42
*
43
*/
44
#ifndef C_BASIC_RTSP_ONLY_SERVER_H
45
#define C_BASIC_RTSP_ONLY_SERVER_H
46
47
#ifdef HAVE_CONFIG_H
48
#include "config.h"
49
#include "
config_unix.h
"
50
#include "
config_win32.h
"
51
#endif
// HAVE_CONFIG_H
52
53
#include <pthread.h>
54
#include "
control_socket.h
"
55
#include "
module.h
"
56
#include "
debug.h
"
57
#include "
rtsp/rtsp_utils.h
"
58
#include "
audio/types.h
"
59
60
61
#ifdef __cplusplus
62
#define EXTERNC extern "C"
63
#else
64
#define EXTERNC
65
#endif
66
67
struct
rtsp_server_parameters
{
68
unsigned
int
rtsp_port
;
69
struct
module
*
parent
;
70
rtsp_types_t
avType
;
71
struct
audio_desc
adesc
;
72
int
rtp_port_video
;
//server rtp port
73
int
rtp_port_audio
;
74
codec_t
video_codec
;
75
};
76
77
EXTERNC
typedef
struct
rtsp_serv
{
78
struct
rtsp_server_parameters
params
;
79
pthread_t
server_th
;
80
uint8_t
watch
;
81
}
rtsp_serv_t
;
82
83
EXTERNC
rtsp_serv_t
*
c_start_server
(
struct
rtsp_server_parameters
params
);
84
85
EXTERNC
void
c_stop_server
(
rtsp_serv_t
* server);
86
87
#undef EXTERNC
88
89
#endif
// defined C_BASIC_RTSP_ONLY_SERVER_H
types.h
This file contains definition of some common audio types.
c_stop_server
EXTERNC void c_stop_server(rtsp_serv_t *server)
Definition
c_basicRTSPOnlyServer.cpp:66
rtsp_serv_t
EXTERNC struct rtsp_serv rtsp_serv_t
EXTERNC
#define EXTERNC
Definition
c_basicRTSPOnlyServer.h:62
c_start_server
EXTERNC rtsp_serv_t * c_start_server(struct rtsp_server_parameters params)
Definition
c_basicRTSPOnlyServer.cpp:51
config_unix.h
config_win32.h
control_socket.h
debug.h
module.h
rtsp_utils.h
rtsp_types_t
rtsp_types_t
Definition
rtsp_utils.h:4
audio_desc
Definition
types.h:76
module
Definition
module.h:111
params
Definition
platform_pipe.cpp:130
rtsp_serv
Definition
c_basicRTSPOnlyServer.h:77
rtsp_serv::server_th
pthread_t server_th
Definition
c_basicRTSPOnlyServer.h:79
rtsp_serv::watch
uint8_t watch
Definition
c_basicRTSPOnlyServer.h:80
rtsp_server_parameters
Definition
c_basicRTSPOnlyServer.h:67
rtsp_server_parameters::rtp_port_audio
int rtp_port_audio
Definition
c_basicRTSPOnlyServer.h:73
rtsp_server_parameters::video_codec
codec_t video_codec
Definition
c_basicRTSPOnlyServer.h:74
rtsp_server_parameters::rtsp_port
unsigned int rtsp_port
Definition
c_basicRTSPOnlyServer.h:68
rtsp_server_parameters::parent
struct module * parent
Definition
c_basicRTSPOnlyServer.h:69
rtsp_server_parameters::adesc
struct audio_desc adesc
Definition
c_basicRTSPOnlyServer.h:71
rtsp_server_parameters::rtp_port_video
int rtp_port_video
Definition
c_basicRTSPOnlyServer.h:72
rtsp_server_parameters::avType
rtsp_types_t avType
Definition
c_basicRTSPOnlyServer.h:70
codec_t
codec_t
Definition
types.h:65
Generated on Wed Sep 25 2024 14:27:18 for UltraGrid by
1.12.0