socketSend function


socketSend status

socketSend (host, port, data)

Writes the data as a UTF-8 string to the TCP/IP referenced by host and port. This function opens the socket, writes the data, and finally closes the socket.

Parameters:

host - String the host name or IP address of the remote computer.

port - a number for the TCP/IP port number.

data - A string with the data to write.

Returns:

True if data was written successfully, false otherwise.

Example

status = socketSend("172.21.46.96", 7474, "Hello World")
if status == false then
// Handle error by sending message to operator, etc.
endif

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*