UdpSocket methods syntax

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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