| None. |
|
Takes the next message from another player; returns True if there was one. After it returns True, SharedMsgType, SharedMsgData, SharedMsgPlayer and SharedMsgEntity describe the message. Read every message each frame with a loop: While RecvSharedMsg() If SharedMsgType()=MSG_OPEN_DOOR Then door_open=Not door_open Wend Messages wait in a queue of at most 1024. If you stop reading them, the queue overflows and the session fails, so read RecvSharedMsg and RecvSharedEvent every frame, even in menus. For the full story - services, hosting, sharing and host migration - see the Shared World guide and its complete Shared_World_Playground.bb sample. See also: SendSharedMsg, SharedMsgType, SharedMsgData, SharedMsgPlayer, RecvSharedEvent. |