mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
srs-librtmp: implements handshake.
This commit is contained in:
parent
f24f27deb9
commit
86267f854c
9 changed files with 83 additions and 39 deletions
|
@ -66,7 +66,10 @@ void srs_rtmp_destroy(srs_rtmp_t rtmp);
|
|||
int srs_simple_handshake(srs_rtmp_t rtmp);
|
||||
/**
|
||||
* complex handshake is specified by adobe Flash player,
|
||||
* depends on ssl, user must link libssl.a and libcrypt.a
|
||||
* depends on ssl, user must compile srs with ssl, then
|
||||
* link user program libssl.a and libcrypt.a
|
||||
* @remark user can use srs_ssl_enabled() to detect
|
||||
* whether ssl is ok.
|
||||
*/
|
||||
int srs_complex_handshake(srs_rtmp_t rtmp);
|
||||
|
||||
|
@ -97,6 +100,14 @@ int srs_play_stream(srs_rtmp_t rtmp);
|
|||
*/
|
||||
int srs_publish_stream(srs_rtmp_t rtmp);
|
||||
|
||||
/**
|
||||
* whether srs is compiled with ssl,
|
||||
* that is, compile srs with ssl: ./configure --with-ssl,.
|
||||
* if no ssl, complex handshake always error.
|
||||
* @return 0 for false, otherwise, true.
|
||||
*/
|
||||
int srs_ssl_enabled();
|
||||
|
||||
/**
|
||||
* get protocol stack version
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue