(Phobos - SocketStream) Am I doing something wrong or is this a

BCS none at anon.com
Wed Nov 4 09:56:50 PST 2009


Hello Zane,

> while(num < 17593)
> {
> num += socketStream.readBlock(data[(num-1)..length].ptr,
> data.length-num);
> writef("\n\nNum: %d\n", num);
> }

That probably will work but I wouldn't use readBlock. If you are going to 
go with a low level 2 arg function, look at readExact.





More information about the Digitalmars-d mailing list