mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #149, RTMP/HTTP support bind to <[ip:]port>. 2.0.148
This commit is contained in:
parent
fcab17741c
commit
b6feb0742f
12 changed files with 148 additions and 83 deletions
|
@ -50,6 +50,13 @@ extern int srs_socket_connect(std::string server, int port, int64_t timeout, st_
|
|||
*/
|
||||
extern int srs_get_log_level(std::string level);
|
||||
|
||||
/**
|
||||
* parse the endpoint to ip and port.
|
||||
* @param ip_port the ip and port which formats in <[ip:]port>
|
||||
*/
|
||||
extern void srs_parse_endpoint(std::string ip_port, std::string& ip, std::string& port);
|
||||
extern void srs_parse_endpoint(std::string ip_port, std::string& ip, int& port);
|
||||
|
||||
// current process resouce usage.
|
||||
// @see: man getrusage
|
||||
class SrsRusage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue