tcp.writeStringToStream

Syntax tcp.writeStringToStream (stream, data, chunksize, timeOutSecs)

Params stream is a stream reference returned by tcp.openStream.

data is the data to be written to the connection

chunkSize is the number of bytes to be send out in a chunk.

timeOutSecs is the number of seconds to wait for data to come in before giving up.

Action Sends the specified data through the specified TCP/IP connection, in multiple chunks if neccessary.

Returns True

Examples
Notes A timeout error is generated if no data can be written for more than timeOutSecs seconds.

This verb is new in Frontier 6.1. It's faster and more thread-friendly than using tcp.writeStream and tcp.statusStream in a loop.

See also tcp.writeStream

tcp.writeFileToStream

Discuss