Port (UdpSocket property): Difference between revisions
Jump to navigation
Jump to search
m (→Usage notes) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:UdpSocket:Port subtitle}} | {{Template:UdpSocket:Port subtitle}} | ||
==Syntax== | ==Syntax== | ||
Line 9: | Line 7: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%portNumber</th> | <tr><th>%portNumber</th> | ||
<td>number</td></tr> | <td>A numeric variable to receive the port number.</td></tr> | ||
<tr><th>udpSocket</th> | <tr><th>udpSocket</th> | ||
<td>UdpSocket object</td></tr> | <td>A <var>UdpSocket</var> object.</td></tr> | ||
</table> | </table> | ||
Revision as of 22:39, 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 port number. |
---|---|
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.