TCP PRINT statement

Purpose | Write a string to a nominated TCP/IP port.
Syntax | TCP PRINT [#] fNum&, string_expression[;]
Remarks | Write the data in string_expression to the fNum& TCP/IP port. If the optional semi-colon is not specified, a carriage-return and linefeed pair ($CRLF or CHR$(13,10)) is also sent. The TCP PRINT statement does not return until string_expression has been sent, or an error occurs. That is, TCP PRINT 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 RECV, TCP SEND, UDP OPEN