Port (UdpSocket property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%portNumber</th>
<tr><th>%portNumber</th>
<td>A numeric variable to receive the port number.</td></tr>
<td>A numeric variable to receive the number of <var class="term">udpSocket</var>'s remote target port.</td></tr>


<tr><th>udpSocket</th>
<tr><th>udpSocket</th>
Line 14: Line 14:


==Usage notes==
==Usage notes==
<ul>
 
<li><var>Port</var> is a read-only property: Once a port is specified for a <var>UdpSocket</var> object (by a <var>Port</var> parameter setting on the <var>[[New (UdpSocket constructor)|New]]</var> method that created the <var>UdpSocket</var> object), the port cannot be changed later.
</ul>


==Examples==
==Examples==

Latest revision as of 23:09, 10 December 2012

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

Examples

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

See also