On Sun, 08 Feb 2009 14:09:08 +0100 Stelian Ionescu stelian.ionescu-zeus@poste.it wrote:
It's possible: you can use drain-input-buffer to copy data from the buffers(it returns two values: the offset of the first element of the sequence that wasn't overwritten, and the number of octets remaining in the buffer or NIL if there aren't any left). After that you can use receive-from. Technically, you can use it at any moment, but since there may be data left in the stream buffer, you lose ordering of the stream data)
Indeed
Since you use iolib, you might as well use babel's o-t-s and s-t-o functions.
Thanks for the suggestion, I tried it and verified if performance was affected but it doesn't seem to be (at least not noticeably).