New (UdpSocket constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
 
mNo edit summary
Line 1: Line 1:
{{Template:UdpSocket:New subtitle}}
{{Template:UdpSocket:New subtitle}}


This page is [[under construction]].
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 ([[JANUS DEFINE#type|CLSOCKU]]) port.
==Syntax==
==Syntax==
{{Template:UdpSocket:New syntax}}
{{Template:UdpSocket:New syntax}}

Revision as of 16:55, 22 April 2012

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