This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to find out if socket closed?


On Mon, 2003-07-14 at 10:04, Grant Edwards wrote:
> On Mon, Jul 14, 2003 at 09:40:00AM -0500, Grant Edwards wrote:
> 
> > If I submitted a patch (to the old stack) adding an ioctl that
> > returned the SS_CANTRECVMORE flag, what are the chances of it
> > being accepted?
> 
> Here's a patch that adds an option for getsockopt() to retrieve
> the state of the SS_CANTRCVMORE flag.  The current
> implimentation of getsockopt(SO_ERROR) seemed to be the closest
> thing I could find to what I was adding, so that's where it went.

A better question is "how is this solved elsewhere?"  E.g. how
can one tell what's happening with a socket on Linux?

It would be nice to have a solution which matches other systems.
If it turns out that this is a special case, then your patch seems
OK, but I'd also like to see it for the new stack as well.
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]