UdpSocket methods syntax

From m204wiki
Revision as of 00:55, 17 April 2012 by Wiccan (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The syntax for each of the UdpSocket class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of UdpSocket methods.

%currentIpAddress = udpSocket:Host udpSocket:Host = newIpAddress

%ipAddress = udpSocket:LocalHost

%portNumber = udpSocket:LocalPort

%udpSocket = [%(UdpSocket):]New[( [ClientPort= string], [LocalHost= string], - [LocalPort= number], [Host= string], - [Port= number])]

%currentPortNumber = udpSocket:Port udpSocket:Port = newPortNumber

%string = udpSocket:Receive

udpSocket:Send( message)

%udpSocket = [%(UdpSocket):]ServerSocket

%currentSeconds = udpSocket:Timeout udpSocket:Timeout = newSeconds