Client: Caller

Represents caller object in tcp service remote methods.

Remote Methods

writeBytes

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

close

Close the remote connection.

Fields

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

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

  • localHost string(default "")
  • The bound hostname

  • localPort int(default -1)
  • The port number to which the socket is bound

writeBytes

function writeBytes(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 tcp:Error if the given data cannot be sent

close

function close() returns Error?
Isolated Function
Remote Function

Close the remote connection.

Return Type

(Error?)

() or else a tcp:Error if the connection cannot be properly closed