litespeedtech / lsquic

LiteSpeed QUIC and HTTP/3 Library
MIT License
1.52k stars 328 forks source link

real-time data statistics #392

Open barrynshang opened 2 years ago

barrynshang commented 2 years ago

Dear author, I am a quic newcomer. When I use lsquic, I found that the external api interface does not have an interface to obtain real-time data statistics, including but not limited to the members of struct conn_stats, bandwidth, RTT and other information. The current use needs to include the internal header file lsquic_conn. h. Or is there another way? Others I will add some interfaces to improve it

litespeedtech commented 2 years ago

Currently there is no public API to access the statistics, maybe can move struct conn_stats out of lsquic_conn.h, into lsquic.h, and add a few API functions to access it.