bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem about TCPStream


From: Philippe Mbakob Mbakob
Subject: problem about TCPStream
Date: Thu, 13 Dec 2007 14:36:50 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071022)

hi,

I'm using ost:TCPStream to develop a client-server application and i have a problem when in my server. When i try to receive message from client using operator >>, it work fine only if there is no space character in my message.

my class SERVER inherit from ost:TCPStream. And when i received a msg a method using the code below is called.

string msg;

while( this->isPending(Socket::pendingInput, 1000) && ( !this->eof() ) )
{
     *(this) >> msg;
}


For example, if i send "hello world", the server will only receive"hello".

Please can you help me?

thanks

--
Philippe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]