Discussion:
IPCSocket and ReadAll
Jean-Luc Arnaud
2016-09-15 14:44:37 UTC
Permalink
Hi all,

I have some issues with IPCSockets and would like to be sure I have well
understood how it works.
When using ReadAll, is the buffer emptied? Or could next ReadAll command
returns same text, eventually completed by new text sent to the buffer?

If ReadAll does not empty the buffer, what's the appropriate command?

TIA
--
Jean-Luc Arnaud


_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>
Marnaud
2016-09-15 14:49:34 UTC
Permalink
Post by Jean-Luc Arnaud
Hi all,
I have some issues with IPCSockets and would like to be sure I have well understood how it works.
When using ReadAll, is the buffer emptied? Or could next ReadAll command returns same text, eventually completed by new text sent to the buffer?
If ReadAll does not empty the buffer, what's the appropriate command?
Hello Jean-Luc,

ReadAll indeed empties the internal buffer. The LookAhead command, on the other hand, returns the buffer without clearing it.
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo.com>

Loading...