New (UdpSocket constructor)

From m204wiki
Revision as of 16:55, 22 April 2012 by Alex (talk | contribs)
Jump to navigation Jump to search

Create a UdpSocket object (UdpSocket class)

[Introduced in Sirius Mods 8.0]


New creates an instance of a UdpSocket object. This object can be used to exchange messages with a remote host using a Janus client socket (CLSOCKU) port.

Syntax

%udpSocket = [%(UdpSocket):]New[( [ClientPort= string], [LocalHost= string], - [LocalPort= number], [Host= string], - [Port= number])]

Syntax terms

%outUdpSocketudpSocket
[%(UdpSocket):] The optional class name in parentheses denotes a Constructor. See "Usage notes", below, for more information about invoking a Constructor.
ClientPort string
LocalHost string
LocalPort number
Host string
Port number

Usage notes

Examples

See also