Subject: Re: AfterSocketCreationFuncPtr

Re: AfterSocketCreationFuncPtr

From: Gregor Jasny <jasny_at_vidsoft.de>
Date: Fri, 28 Nov 2008 00:49:07 +0100

On Thu, Nov 27, 2008 at 12:32:31PM +0100, Gregor Jasny wrote:
> Daniel Stenberg wrote:
> > * I would like to have the callback able to fail the operation by
> > returning an error code
> >
> > * I would like the callback to work on both UDP and TCP sockets
> >
> > * I would like the callback to get some private context pointer passed in
> > from the app as callbacks without any such so often will have to rely on
> > global variables etc soon when they need app-specific data to work with.

Done. I've added the socket type (DGRAM/STREAM) to the callabck for
convenience. Strictly speaking, this information is available via
getsockopt().

Maybe you want to rename ares_set_socket_callback to match the new
option getter/setter scheme.

Cheers,
Gregor

Received on 2008-11-28