且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

接收多个UDP数据包,同时更新UI

更新时间:2023-11-09 23:04:40

如果UDP数据包的接收是在一个单独的线程中完成的,应该没有问题,显示在您的GUI呢!

If the receiving of UDP packets are done on a seperate thread, there should be no problems showing it on your GUI!

您code表示只receving UDP数据。我需要更多的信息是具体的:)

Your code shows only receving UDP data. I need more info to be specific :)

只有一个UDPSocket处理一个特定的端口上的传入数据,它们都将(数据包)被顺序地存储在缓冲器中,专用于该特定处理

Only one UDPSocket handles incoming data on a specific port, they will all (packets) be stored sequentially in a buffer, dedicated to that specific process.