tcp.readStreamUntilClosed
| Syntax |
tcp.readStreamUntilClosed (stream, timeOutSecs, adrBuffer)
|
| Params |
stream is a stream reference returned by tcp.openStream. timeOutSecs is the number of seconds to wait for data to come in before giving up. adrBuffer is the address of a string to which the incoming data is appended.
|
| Action |
Reads waiting data from an open TCP/IP connection until it is closed by the peer.
|
| Returns |
True.
|
| Examples | |
| Notes |
The data is read from the stream in chunks as it becomes available, appending to the string pointed to by adrBuffer. A timeout error is generated if the connection is idle for more than timeOutSecs seconds. This verb is new in Frontier 6.1. It's faster and more thread-friendly than using tcp.readStream and tcp.statusStream in a loop.
|
| See also |
tcp.readStream
|