【发布时间】:2013-04-16 14:11:07
【问题描述】:
我尝试使用 SharpPcap 并使用 SharpPcap 中的示例从 pcap 文件 (libpcap) 发送数据包:http://sourceforge.net/p/sharppcap/code/ci/SharpPcap_4_1_0/tree/Examples/Example10.SendQueue/Example10.SendQueues.cs
我的问题在第 127 行 - int sent = winPcapDevice.SendQueue(squeue, SharpPcap.WinPcap.SendQueueTransmitModes.Synchronized); 中,当尝试执行此命令时,我收到异常 对象引用未设置为对象实例。
我已经用调试器逐行检查,似乎一切正常,直到这个命令,我的Pcap文件OK,所有数据包都放在Queue中
【问题讨论】:
标签: c#