ArcBasicDocs

CreateUDPStream

Creates a UDP stream.

CreateUDPStream ( [port] )

Parameters

port (optional)
the port to receive messages on; 0 lets the computer pick a free one.

Description

Opens a UDP stream and gives back its handle, or 0 if the port can't be used. UDP sends short messages that aren't guaranteed to arrive, which suits fast-changing things like positions in an action game. Write a message with the file commands, such as WriteInt, then send it with SendUDPMsg.

See also