How to get link speed programmatically?

前端 未结 3 1921
深忆病人
深忆病人 2020-12-04 18:42

I am working on an app and it is almost finished except only one thing: I don\'t know how to get link speed and place it in the status bar.I am new to Java so if somebody co

3条回答
  •  情深已故
    2020-12-04 19:15

    You cannot tell directly. You must ask the underlying operating system. For OS X you can parse the output from "/sbin/ifconfig" on the appropriate network port.

提交回复
热议问题