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 hostname which the binded

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

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 can't 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 can't be properly closed