UdpSocket methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
Wiccan (talk | contribs)
m Automatically generated page update
 
(No difference)

Latest revision as of 00:55, 17 April 2012

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