Routed multicasting several clients from server

In ProudNet, you can effectivelyMulticast in MMO game using P2P functionalities. One of them is server-to-client routed multicast.

npc_multicast.jpg
Server-to-client routed multicast

To start server-to-client routed multicast, first you need to switch the P2P connection ready condition from JIT to always. Before server starts as shown in below.

To Multicast from server through server-to-client routed multicast, you need to do followings when calling RMI.

  • It must be Unreliable Messaging.
  • It must be one time call for multi-cast. If RMI is called for each hosts to transmit targets then it is impossible to server-to-client routed multicast.
  • You need to fill in Proud.RmiContext.m_unreliableS2CRoutedBroadcastMaxCount, parameter member of Proud.RmiContext.
  • If necessary, also fill in Proud.RmiContext.m_unreliableS2CRoutedBroadcastMaxPing.. Proud.RmiContext.m_unreliableS2CRoutedBroadcastMaxPing already has reasonable values as default.