Overview
Features
Download
Documentation
Community
Add-Ons & Services

How determine POCO_EWOULDBLOCK from Net::sendBytes().

Please post support and help requests here.

How determine POCO_EWOULDBLOCK from Net::sendBytes().

Postby jnewell » 09 Aug 2012, 04:43

If Net::sendBytes() would block in non-blocking mode and raise an IOException("Operation would block"), how does one determine the difference between the other IOExceptions that could be raised from POCO_EWOULDBLOCK?

Regards,
Jim
jnewell
 
Posts: 7
Joined: 10 May 2011, 19:55

Re: How determine POCO_EWOULDBLOCK from Net::sendBytes().

Postby guenter » 10 Aug 2012, 07:01

Unfortunately currently there's no way to determine that, except for checking the exception message(). We'll fix that in the next release - in 1.4.4 you'll be able to examine the exception code() and check for POCO_EWOULDBLOCK.
guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: How determine POCO_EWOULDBLOCK from Net::sendBytes().

Postby jnewell » 10 Aug 2012, 15:58

That was going to be my recommendation as well. Thanks Guenter.
jnewell
 
Posts: 7
Joined: 10 May 2011, 19:55

Re: How determine POCO_EWOULDBLOCK from Net::sendBytes().

Postby guenter » 10 Aug 2012, 16:04

The fix is already in the 1.4.4 SVN branch, btw.
guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron