ServerSocket (UdpSocket function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 17: Line 17:
==Usage notes==
==Usage notes==
<ul>
<ul>
<li><var>ServerSocket</var> is a [[Object variables#Virtual Constructor methods|virtual constructor]] and as such can be called with no method object, with an explicit class name, or with an object variable, even if that object is <var>Null</var>:
<p class="code">%udpSock = ServerSocket
%udpSock = %(UdpSocket):ServerSocket
%udpSock = %udpSock:ServerSocket
</p>
<li>This method turns the server socket into a client       
<li>This method turns the server socket into a client       
socket so that any server activity (line input, etc.) results in request
socket so that any server activity (line input, etc.) results in request

Revision as of 23:18, 10 December 2012

Get server UdpSocket object (UdpSocket class)

[Introduced in Sirius Mods 8.0]


This page is under construction.

Syntax

%udpSocket = [%(UdpSocket):]ServerSocket

Syntax terms

%outUdpSocket UdpSocket object
[%(UdpSocket):] The optional class name in parentheses denotes a virtual constructor. See "Usage notes", below, for more information about invoking a virtual constructor.

Usage notes

  • ServerSocket is a virtual constructor and as such can be called with no method object, with an explicit class name, or with an object variable, even if that object is Null:

    %udpSock = ServerSocket %udpSock = %(UdpSocket):ServerSocket %udpSock = %udpSock:ServerSocket

  • This method turns the server socket into a client socket so that any server activity (line input, etc.) results in request cancellation for any subsequent ServerSocket calls and logout for any line input.

Examples

See also