1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add connections count to api summaries. 0.9.127

This commit is contained in:
winlin 2014-06-19 18:49:05 +08:00
parent 603b3bcdcc
commit 094d82bd06
6 changed files with 97 additions and 15 deletions

View file

@ -414,13 +414,20 @@ public:
int skbps_30s;
int skbps_5m;
// connections
int nb_conn_sys;
int nb_conn_sys_et; // established
int nb_conn_sys_tw; // time wait
int nb_conn_sys_ls; // listen
int nb_conn_srs;
SrsNetworkRtmpServer();
};
// get network devices info, use cache to avoid performance problem.
extern SrsNetworkRtmpServer* srs_get_network_rtmp_server();
// the deamon st-thread will update it.
extern void srs_update_rtmp_server(SrsKbps* kbps);
extern void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps);
// get local ip, fill to @param ips
extern void srs_retrieve_local_ipv4_ips();