如何从以太网端口读取数据? [英] How can i read data from a ethernet port?
本文介绍了如何从以太网端口读取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从以太网端口读取数据?
如何解压缩从以太网端口发送的数据包?
How can i read data from a ethernet port?
How can i unpack data packets sent from the ethernet port?
推荐答案
使用 Pcap.Net [^ ]:-)
您需要在端口500上设置"TCP服务器"-您可以使用通用TCP服务器或HTTP模块进行一些更改.
You need to setup a "TCP server" on port 500 - you can use the Generic TCP server or the HTTP module, with some changes.
TcpClient tcpclient = new TcpClient();
tcpclient.Connect("192.168.1.201", 500);
希望这可以指导您.
Hope this might guide you.
这篇关于如何从以太网端口读取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文