Overview
Features
Download
Documentation
Community
Add-Ons & Services

SocketStream tokenizes stream text

Please post support and help requests here.

SocketStream tokenizes stream text

Postby teh » 01 Oct 2008, 18:06

I can't find this behavior documented for SocketStream. How do I turn this off so the entire buffer is extracted at once?

That's the behavior inherited from the standard stream. It is not intuitive and I've got bitten myself by it repeatedly (last time in public (:redface:)).

try
Code: Select all

ss.read(char*, std::streamsize)

or
Code: Select all

std::getline(ss, input);
teh
 
Posts: 3
Joined: 17 Jul 2008, 21:30

Re: SocketStream tokenizes stream text

Postby alex » 02 Oct 2008, 03:48

Ah, sorry, instead of reply, I've hit edit and overwrote the original message. It's too late, I better get some sleep (:confused:)
alex
 
Posts: 1101
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: SocketStream tokenizes stream text

Postby teh » 02 Oct 2008, 22:03

thanks very much.
teh
 
Posts: 3
Joined: 17 Jul 2008, 21:30


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron