UdpSocket methods syntax
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