[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] specifying hints.ai_flags for bufferevent_socket_connect_hostname



Done.

https://github.com/libevent/libevent/pull/193

On 2014-12-08 16:22, Azat Khuzhin wrote:
On Mon, Dec 08, 2014 at 03:11:34PM +0000, Joseph Spadavecchia wrote:
That's easy, but any preferences?

Unit tests

Should it be a new property of
evdns_base, e.g. set with evdns_base_set_default_flags(), or a new
socket_connect_hostname function with the additional parameter?

I don't think that it should be something that related to evdns, since bufferevent could even don't use it at all (evdns will be used only when
you will create any).
So I guess it should be new function, that will accept hints I guess.

Also I want to note that I'm not a libevent maintainer, so maybe he will
disagree with me in this.

Cheers,
Azat.


AI_ADDRCONFIG


On 2014-12-08 13:57, Azat Khuzhin wrote:
>On Mon, Dec 08, 2014 at 01:11:46PM +0000, Joseph Spadavecchia wrote:
>>Is there a way to specify the ai_flags to be used by
>>bufferevent_socket_connect_hostname()? I cannot find any way other than
>>by
>>calling evdns_getaddrinfo() or evutil_getaddrinfo() directly.
>
>Hi Joseph, the answer is no, right now you can't do that.
>But you could send a patch for this.
>
>Just our of curiosity, which flag you want to install?

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.