Client: Caller

Represents caller object in UDP service remote methods.

Remote Methods

sendBytes

Sends the response as byte[] to the same remote host.

sendDatagram

Sends the response as datagram to a remote destination as specified in datagram.

Fields

  • remoteHost string?(default ())
  • The hostname or the IP address of the remote host

  • remotePort int?(default ())
  • The port number of the remote host

sendBytes

function sendBytes(byte[ ] data) returns Error?
Isolated Function
Remote Function

Sends the response as byte[] to the same remote host.

Parameters

  • data byte[ ]
  • The data need to be sent to the remote host

Return Type

(Error?)

() or else a udp:Error if the given data can't be sent

sendDatagram

function sendDatagram(Datagram datagram) returns Error?
Isolated Function
Remote Function

Sends the response as datagram to a remote destination as specified in datagram.

Parameters

  • datagram Datagram
  • Contains the data to be sent to the remote host and the address of the remote host

Return Type

(Error?)

() or else a udp:Error if the given data can't be sent