[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error handling in TCPStream::connect
From: |
Alexander Sbitnev |
Subject: |
Error handling in TCPStream::connect |
Date: |
Fri, 1 Aug 2003 17:31:16 +0400 |
Hi there.
I working with CommonCPP on Win32 platform and notice some problems
within error managment of TCPStream::connect member. Problem caused by
setCompletion() execution before connectError() call. Here is the
code:
setCompletion(true);
if(!connected)
{
connectError();
endSocket();
return;
}
Because of ioctl problems we can lose a correct error status. Is it better to
move setCompletion
lower?
--
Best regards,
Alexander mailto:address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Error handling in TCPStream::connect,
Alexander Sbitnev <=