eof of socketstream?

useo6 isntveryinteresting at isntveryinteresting.com
Sun Jan 22 14:01:47 PST 2012


Hey guys,

is there any way to find the end a socketstream? When I use:

MemoryStream ms = new MemoryStream();
while (s.socket().isAlive()) ms.write(s.getc());

I run into an endless loop. The socket doesn't send the size of the data, so I
need to know when I received all the data. How can I figure out that I received
all data?

thx for any help!


More information about the Digitalmars-d-learn mailing list