UDP缺少数据包
问题:UDP数据包缺失。
我如何捕获击中端口的每个UDP数据包?
我想在队列中将收到的数据包放在背景中进行预处理,并继续捕获新的UDP数据包而没有单个UDP数据包损失?
public void Main()
{
Socket client = new(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
....
Console.WriteLine("Collecting data..");
while (true)
{
CaptureUDPPacket(client, _ep);
}
}
实施此功能的最佳方法是什么?
此致!
The problem: UDP packets are missing.
How could I capture every single UDP packet that is hitting the port?
I want to put received packet on the queue for preprocessing in the background and continue capturing new UDP packets without a single UDP packet loss?
public void Main()
{
Socket client = new(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
....
Console.WriteLine("Collecting data..");
while (true)
{
CaptureUDPPacket(client, _ep);
}
}
What is the best way to implement this feature?
Best regards!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论