New (UdpSocket constructor)
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
%outUdpSocket | udpSocket |
---|---|
[%(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 |