LCKB
How send packet to all clients - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: How send packet to all clients (/showthread.php?tid=4938)



- nicolasg - 06-29-2022


Is it possible to send the same message to all clients?

something like

SEND_Q(rmsg, ALL);

Instead of

SEND_Q(rmsg, ch->m_desc);

Or

SEND_Q(rmsg, gserver->m_messenger);

?

 

--- Update ---

#Solved 

PCManager::instance()->sendToAll(rmsg);