请使用C#编写类似netstat的程序 [英] ask make program like netstat using C#
本文介绍了请使用C#编写类似netstat的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是.net的初学者,我想问一下如何使用C#制作netstat程序,但它可以计算接收或发送到目标IP的字节数。
I'm beginner in .net and i wan to ask how to make a netstat program using C# but it can calculate how many bytes that received or sent to the destination ip.
我应该使用哪个班级?
推荐答案
嗨Christiandy,
Hi Christiandy,
   你可以使用'System.Net.Socket'命名空间。在"套接字"类中使用以下属性,您可以获得发送/接收字节。
you can use 'System.Net.Socket' Namespace. Using following Properties in 'Socket' Class you can get the Send / Received Byte.
属性:
- SendBufferSize。
- ReceiveBufferSize。
希望这有助于!!!
这篇关于请使用C#编写类似netstat的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文