Read packet until socket is closed?

20 views
Skip to first unread message

Andrey

unread,
Aug 26, 2011, 4:18:28 AM8/26/11
to Naga Users
I'm making a simple HTTP client with Connection: close and I want to
read data from socket until it's closed by the other side. From what
I've seen, with PacketReaders it's not possible. Maybe you could add
some functionality into your new version to make this work? Maybe some
sort of flag for PacketReader that there will be no more data, or
something.

Nuoji

unread,
Aug 26, 2011, 6:07:06 AM8/26/11
to Naga Users
This is definitely possible, but shouldn't it be possible to use
Content-Length and then simply use the RawPacketReader, assembling
data as you go?
Reply all
Reply to author
Forward
0 new messages