how to read some in vibe.d tcpconnection?

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Mar 6 02:36:58 PST 2015


On Friday, 6 March 2015 at 10:16:32 UTC, zhmt wrote:
>
>> There should be a function called DataAvilable.
>> Simply read the data if this function returns true
>
> Thanks you!
>
> But the DataAvilable just return a bool value, so I dont know 
> the available data size, I cant call the read method simply.
>
> Is there more info to solve this problem?

you first check dataAvilableForRead
and then leastSize


More information about the Digitalmars-d-learn mailing list