Re: [Quickfix-developers] RE: Intermittent disconnect problem
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2005-02-02 15:19:37
|
Yeah, that's not a problem. The Parser throws a RecvFailed exception, so we would just need to return the error number in there. We can create a base SocketException which has a default constructor which will get the error name and number as well as the human readable text. Then RecvFailed can inherit from it and it the base object will automatically get populated with this information if available. --oren On Feb 2, 2005, at 4:03 AM, Bishop, Barry wrote: > So yes, it's a great idea to trap ERRNO around every socket call. To > propogate this up to the session would mean starting at a low level. I > was > surprised to find the call to recv() (and also socket_fionread) in > Parser, > but that's where it would have to start. |