Java – why does UDP datagram fail even when the process is running locally?

Then I am developing a java interface between the streaming media server and the flash client I noticed that even if both processes are running locally, UDP datagrams may not be able to access my interface

Is it normal? I don't think it should happen because no datagram must pass through any router or any network device

Thank Nelson Perez in advance

Solution

In fact, the ordering and receiving of UDP packets are not guaranteed, even if they are sent by localhost on localhost Just because the specification of the agreement does not mean anything

Because you can't assume it, you should choose to use TCP or use the serial number processed by the program to process the reordering

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>