LocalHost (UdpSocket property): Difference between revisions
Jump to navigation
Jump to search
m (→Usage notes) |
m (add IPV6 address format) |
||
Line 7: | Line 7: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%ipAddress</th> | <tr><th>%ipAddress</th> | ||
<td>A string to contain the returned IP address of the host to which <var class="term">udpSocket</var> is bound.</td></tr> | <td>A string to contain the returned IP address of the host to which <var class="term">udpSocket</var> is bound. <var class="term">%ipAddress</var> might contain an IP address specified in either: | ||
<ul> | |||
<li>IPV4 standard 32-bit "dotted-decimal" form: for example, <code>198.242.244.97</code>. </li> | |||
<li>IPV6 standard ([https://tools.ietf.org/html/rfc5952 RFC 5952]) 128-bit form: for example, <code>2011:0ab4:15a1::4a0e:0280:5274</code> | |||
<p> | |||
The IPV6 form is supported as of version 7.7 of Model 204. </p></li> | |||
</ul> | |||
<p> | |||
The address format is IPV4 unless the <var>[[TCPTYPE parameter|TCPTYPE]]</var> parameter is explicitly set to an IPV6 value.</p></td></tr> | |||
<tr><th>udpSocket</th> | <tr><th>udpSocket</th> | ||
Line 20: | Line 29: | ||
==Examples== | ==Examples== | ||
For <var>UdpSocket</var> examples of interest, see the [[New (UdpSocket constructor)#Examples| | For <var>UdpSocket</var> examples of interest, see the [[New (UdpSocket constructor)#Examples|Examples]] section of the <var>UdpSocket</var> <var>New</var> method. | ||
==See also== | ==See also== | ||
{{Template:UdpSocket:LocalHost footer}} | {{Template:UdpSocket:LocalHost footer}} |
Latest revision as of 21:54, 6 December 2016
Local IP address for bound socket (UdpSocket class)
[Introduced in Sirius Mods 8.0]
Syntax
%ipAddress = udpSocket:LocalHost
Syntax terms
%ipAddress | A string to contain the returned IP address of the host to which udpSocket is bound. %ipAddress might contain an IP address specified in either:
The address format is IPV4 unless the TCPTYPE parameter is explicitly set to an IPV6 value. |
---|---|
udpSocket | A UdpSocket object. |
Usage notes
- If a local host was defined for a UdpSocket object (by a BINDADDR specification on the CLSOCKU port used for the UdpSocket, or by a LocalHost parameter setting on the New method that created the UdpSocket object), the socket only receives messages that are sent to that local host IP address.
Examples
For UdpSocket examples of interest, see the Examples section of the UdpSocket New method.