简体   繁体   中英

How to send a message using TCP/IP to a multicast address in java?

与发送到任何其他IP地址相同还是不同?

Multicast messages can not be sent via TCP protocol (as it requires message receival confirmation). They are dispatched using UDP. For that purpose Java has a MulticastSocket class.

There is quite short and self-explanatory tutorial here: Broadcasting to Multiple Recipients

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM