TCP SEND statement

Purpose

Write a string to a nominated TCP/IP port.

Syntax

TCP SEND [#] fNum&, string_expression

Remarks

Write the specified string_expression to the TCP/IP port specified by fNum&.

The TCP SEND statement does not return until string_expression has been sent, or an error occurs.  That is, TCP SEND is a synchronous or "blocking" statement.  If a time-out occurs, ERR will be set to indicate a run-time Error 24 ("Device timeout").  See TCP OPEN to specify the TCP socket timeout value.

See also

TCP and UDP communications, TCP ACCEPT, TCP CLOSE, TCP LINE INPUT, TCP NOTIFY, TCP OPEN, TCP PRINT, TCP RECV, UDP SEND