mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from srs2.
This commit is contained in:
commit
ffef3905af
5 changed files with 26 additions and 3 deletions
|
@ -662,6 +662,9 @@ extern int srs_get_local_port(int fd);
|
|||
// where peer ip is the client public ip which connected to server.
|
||||
extern std::string srs_get_peer_ip(int fd);
|
||||
|
||||
// whether the url is starts with http:// or https://
|
||||
extern bool srs_string_is_http(std::string url);
|
||||
|
||||
// whether string is digit number
|
||||
// is_digit("1234567890") === true
|
||||
// is_digit("0123456789") === false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue