将数据包写入文件 [英] Writing Packets to a File
本文介绍了将数据包写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在文件上写一个数据包,但是它不起作用.
I would like to write a packet on a file but it doesn''t work.
CaptureFileWriterDevice captureFileReader = new CaptureFileWriterDevice(devices[i], "D:\\Documents and Settings\\amin\\Mes documents\\file.pcap");
请我帮忙
错误1:最好的重载方法"SharpPcap.LibPcap.CaptureFileWriterDevice.CaptureFileWriterDevice(SharpPcap.LibPcap.LibPcapLiveDevice,string)"具有一些无效的参数
please I need help
Error 1: The overloaded method that best ''SharpPcap.LibPcap.CaptureFileWriterDevice.CaptureFileWriterDevice (SharpPcap.LibPcap.LibPcapLiveDevice, string)'' has some invalid arguments
推荐答案
You在发布到这里之前,应该先阅读常见问题解答:它不起作用" 在零附近告诉我们您的问题.
我可能只是猜想上面的声明引发了异常,但是您什么也没告诉我们.
请详细说明.
此外,我想您已经使用了所使用框架的源代码( ^ ])),因此您可能会在其中钻研找出问题所在.
You should really read the FAQ before posting here: "it doesn''t work" tell us near zero about your prblem.
I may just guess the above statement is throwing an exception, but you told us nothing about.
Please elaborate.
Moreover I suppose you have the source code of the framework you are using (available here[^]) hence you might delve inside it to find what is going wrong.
这篇关于将数据包写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文