how to read some in vibe.d tcpconnection?

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Mar 6 12:03:50 PST 2015


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


More information about the Digitalmars-d-learn mailing list