The client and server communicate using high-level messages. Kinds of server->client messages: Prop control and map layout - see the map command document. Character Info - stats and such. Inventory Info - along with character info, described in charcommand.txt Miscenaleous commands (e.g. chat, turn control) Interface setup commands (button arguments needed, key binds, &c) Kinds of client-server messages: Prop replies - sent (optionally) after the client completes animations and the like. Action messages - high level actions (attack, use item, etc) Drag Events - dragging items out of the inventory typically. Miscelaneous (turn control, chat) This file describes miscelaneous commands. DETAILS OF NETWORK TRAFFIC The networking library has a function 'emit' to send messages. Whither they go is determined by the state of the library in the case of broadcast messages, which will be sent to all connected machines. The network library also has a mailbox, in which incoming messages are stored. A function called 'fetch' is provided, which can optionally filter the messages received. The targets (and senders) of messages are identified by a unique name. #broadcast net.emit(None, tmpmsg) # to a particular client net.emit('client239', net.MsgSTAT('cHP',50)) for msg in net.fetch(): ... for msg in net.fetch(type='STAT'): ... net.connect(IP, port) # returns a connection name. Tenured professor - immune to fire. MISCELANEOUS COMMANDS C->S, S->C (Client to server) talker-name CHAT text... Send a chat message. Emitted from the client, it is expected that the name is the name of the player, the server may well decide not to propagate forged messages. S->C player-name ACTING turn-number S->C, this means that it is now the named player's turn. S->C var-name SET value Allows the server to set a client-side global. (Turn time limit, for instance.) C->S player-name EXTEND amount extend the named player's turn by amount. Note - server may choose to ignore these messages, which should be generated by the client only when the player is active (moving the mouse and such), but a malicous client could spam them.