[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tcpstream bugs...
From: |
Andrea Pippa |
Subject: |
tcpstream bugs... |
Date: |
Thu, 05 Sep 2002 01:25:47 +0200 |
Hi! I'm using commonc++ 2 v 1.0.0 for a project, and I encountered some
bugs in the tcpstream class... simply, sometimes it just hangs ! It
happens in my code when I do something like that:
while (stream->getline(buffer,maxbuffer)) {
.... do some things
.... may need to reply, so:
stream << "my-reply" << endl;
.... ***
}
Well, it hangs if I provide to the input stream more than a line a time,
like:
line1\nline2\nline3\nline4\n
My cycle processes well the first line, then hangs just after having
sent the reply (where there is the ***).
I don't think it's a bug in my code, because if I change the stream, and
provide a stdio stream (console input/output), it works well...
Is that a known bug ? Or maybe you'd like me to make some more tests to
find out the problem ?
btw, I'm using redhat 7.3, so gcc 2.96 (yes, the bad one !:) and
commoncpp2 v 1.0.0.
Thanks for your help ! bye !
Pyper.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- tcpstream bugs...,
Andrea Pippa <=