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


_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-commoncpp

Reply via email to