mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine macro of srs-librtmp. 2.0.43
This commit is contained in:
parent
9387d09f5f
commit
a94dbecdc4
3 changed files with 19 additions and 14 deletions
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
// current release version
|
// current release version
|
||||||
#define VERSION_MAJOR 2
|
#define VERSION_MAJOR 2
|
||||||
#define VERSION_MINOR 0
|
#define VERSION_MINOR 0
|
||||||
#define VERSION_REVISION 42
|
#define VERSION_REVISION 43
|
||||||
// server info.
|
// server info.
|
||||||
#define RTMP_SIG_SRS_KEY "SRS"
|
#define RTMP_SIG_SRS_KEY "SRS"
|
||||||
#define RTMP_SIG_SRS_ROLE "origin/edge server"
|
#define RTMP_SIG_SRS_ROLE "origin/edge server"
|
||||||
|
|
|
@ -55,11 +55,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// for srs-librtmp, @see https://github.com/winlinvip/simple-rtmp-server/issues/213
|
// for srs-librtmp, @see https://github.com/winlinvip/simple-rtmp-server/issues/213
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
@ -28,6 +28,19 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include <srs_librtmp.h>
|
#include <srs_librtmp.h>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* srs-librtmp is a librtmp like library,
|
||||||
|
* used to play/publish rtmp stream from/to rtmp server.
|
||||||
|
* socket: use sync and block socket to connect/recv/send data with server.
|
||||||
|
* depends: no need other libraries; depends on ssl if use srs_complex_handshake.
|
||||||
|
* thread-safe: no
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*************************************************************
|
||||||
|
**************************************************************
|
||||||
|
* Windows SRS-LIBRTMP pre-declare
|
||||||
|
**************************************************************
|
||||||
|
*************************************************************/
|
||||||
// for srs-librtmp, @see https://github.com/winlinvip/simple-rtmp-server/issues/213
|
// for srs-librtmp, @see https://github.com/winlinvip/simple-rtmp-server/issues/213
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// include windows first.
|
// include windows first.
|
||||||
|
@ -50,14 +63,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
/**
|
|
||||||
* srs-librtmp is a librtmp like library,
|
|
||||||
* used to play/publish rtmp stream from/to rtmp server.
|
|
||||||
* socket: use sync and block socket to connect/recv/send data with server.
|
|
||||||
* depends: no need other libraries; depends on ssl if use srs_complex_handshake.
|
|
||||||
* thread-safe: no
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"{
|
extern "C"{
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue