mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code
This commit is contained in:
parent
92c8c0505d
commit
366d6bcb82
7 changed files with 41 additions and 12 deletions
|
@ -203,9 +203,9 @@ extern "C"{
|
|||
|
||||
/**
|
||||
* Retrieve server ip from RTMP handler.
|
||||
* @Param ip A NULL terminated string specifies the server ip.
|
||||
* @Param pid An int specifies the PID of server. -1 is no PID information.
|
||||
* @Param cid An int specifies the CID of connection. -1 is no CID information.
|
||||
* @param ip A NULL terminated string specifies the server ip.
|
||||
* @param pid An int specifies the PID of server. -1 is no PID information.
|
||||
* @param cid An int specifies the CID of connection. -1 is no CID information.
|
||||
* @remark For SRS, ip/pid/cid is the UUID of a client. For other server, these values maybe unknown.
|
||||
* @remark When connected to server by srs_rtmp_connect_app, the information is ready to be retrieved.
|
||||
* @return 0, success; otherswise, failed.
|
||||
|
@ -214,7 +214,7 @@ extern "C"{
|
|||
|
||||
/**
|
||||
* Retrieve server signature from RTMP handler.
|
||||
* @Param sig A NULL terminated string specifies the server signature.
|
||||
* @param sig A NULL terminated string specifies the server signature.
|
||||
* @remark When connected to server by srs_rtmp_connect_app, the information is ready to be retrieved.
|
||||
* @return 0, success; otherswise, failed.
|
||||
*/
|
||||
|
@ -299,7 +299,7 @@ extern "C"{
|
|||
* @return 0, success; otherswise, failed.
|
||||
*/
|
||||
extern int srs_rtmp_read_packet(srs_rtmp_t rtmp, char* type, uint32_t* timestamp, char** data, int* size);
|
||||
// @Param data User should never free it anymore.
|
||||
// @param data User should never free it anymore.
|
||||
extern int srs_rtmp_write_packet(srs_rtmp_t rtmp, char type, uint32_t timestamp, char* data, int size);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue