A
Adam
Hi,
I'm using the GNU Common C++ library to read data from a TCPStream. In
the code below, why does the read not throw an exception if the socket
times out? (If I check the error code after the read, timeout error is
set).
Thanks,
Adam
try {
myTCPStream->read((char *) theBuffer, theLength);
}
catch ( ... ) {
if (myLog->isDebugEnabled()) {
myLog->debug("Caught stream exception.");
}
I'm using the GNU Common C++ library to read data from a TCPStream. In
the code below, why does the read not throw an exception if the socket
times out? (If I check the error code after the read, timeout error is
set).
Thanks,
Adam
try {
myTCPStream->read((char *) theBuffer, theLength);
}
catch ( ... ) {
if (myLog->isDebugEnabled()) {
myLog->debug("Caught stream exception.");
}