Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我制作了一个应用程序来观看本地 pc 的活动 tcp/udp 连接。现在,我的连接列表是静态的,如何使其成为动态的?我尝试使用 Timer 事件,但 GetExtendedTCPTable 返回完整的连接列表。我只希望将新连接添加到我的 listView 中。是否有一些 API 可以做同样的事情?还是我必须手动跟踪所有连接,比较它们,然后添加到显示?
提前致谢
您可以先使用计时器,将所有连接放在一个列表中,然后在下一个计时器周期中使用另一个列表并比较它们,看看发生了什么变化。我认为在这个问题上不存在优雅的方法。
标签不被视为 Android 浏览器中的块元素