Template:Socket:New syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<p class="syntax"><span class="term">%socket</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(Socket):</span><span class="squareb">]</span><span class="literal">New</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">ClientPort=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">Host=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>            -
<p class="syntax"><span class="term">%socket</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(Socket):</span><span class="squareb">]</span><span class="literal">New</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">ClientPort=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">Host=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>            -
                           <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">Port=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">SSL=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>                  -
                           <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">Port=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">SSL=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>                  -
                           <span class="squareb">[</span><span class="literal" title="BOOLEAN">TcpKeepAlive=</span> <span class="term" title="BOOLEAN">bOOLEAN</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
                           <span class="squareb">[</span><span class="literal" title="Boolean">TcpKeepAlive=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>

Latest revision as of 21:24, 14 June 2012

%socket = [%(Socket):]New[( [[ClientPort=] string], [[Host=] string], - [[Port=] number], [[SSL=] string], - [TcpKeepAlive= boolean])]