On Friday, 6 March 2015 at 20:03:52 UTC, Ola Fosheim Grøstad wrote:
On Friday, 6 March 2015 at 19:33:56 UTC, zhmt wrote:
On Friday, 6 March 2015 at 18:40:28 UTC, Kagamin wrote:
I'd say, peek is the right method, it returns what's already in the buffer (but doesn't read), while leastSize returns full logical size of the stream.

The api of vibe.d is too simple to use in real work.

You might want to go lower level:

http://stackoverflow.com/questions/17590816/kernel-based-linux-data-relay-between-two-tcp-sockets

no, I just want receive data and forward them in time, but not to wait unitil the buffer is full.

That means if there is data in buffer, the readSome method should return , and let me forward the data.

Reply via email to