NetworkMessageFromIP

Family: Multiplayer · One form

What it does

NetworkMessageFromIP reads from a Multiplayer object without changing it. It takes iMsgID (an integer), and answers a string. iMsgID is the id of a Msg object, obtained elsewhere in the Multiplayer family.

Syntax

NetworkMessageFromIP(iMsgID integer) → string

Parameters

NameType
iMsgIDinteger

Every form returns

string

Example · generated

DO  Print(NetworkMessageFromIP(1))  Sync()LOOP

NetworkMessageFromIP is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

91 commands in Multiplayer