Port (UdpSocket property)

From m204wiki
Revision as of 22:42, 10 December 2012 by JAL (talk | contribs) (→‎Syntax terms)
Jump to navigation Jump to search

Remote host IP port number (UdpSocket class)

[Introduced in Sirius Mods 8.0]


Syntax

%currentPortNumber = udpSocket:Port udpSocket:Port = newPortNumber

Syntax terms

%portNumber A numeric variable to receive the number of udpSocket's remote target port.
udpSocket A UdpSocket object.

Usage notes

  • Port is a read-only property: Once a port is specified for a UdpSocket object (by a Port parameter setting on the New method that created the UdpSocket object), the port cannot be changed later.

Examples

For UdpSocket examples of interest, see the "Examples" section of the UdpSocket New method.

See also