Re: [gnet-dev] [PATCH] bind outgoing connections to local interface



On Fri, 2003-12-05 at 05:25, Michael Alger wrote:
> Attached is a patch (against the CVS version) that adds the ability to
> bind outgoing connections from a GTcpSocket to a specific interface.

[We're still discussing off list.]

> There's two unrelated tweaks made by the patch, too:

Both committed - thanks!

>   inetaddr.c: gnet_gethostbyname()
>   Call of inet_pton() was checked for success with != 0; I've changed
>   it to > 0, since the manpage says it can return a negative value if
>   an unsupported protocol family is specified.  While it's very, very
>   unlikely that that would actually happen, I was feeling pedantic.

Hrm, FreeBSD and OpenBSD return 1 on success.  Linix returns a "positive
value" on success.  I'll make it > 0.


Thanks,
David


-- 
David Helder - dhelder gizmolabs org - http://www.gizmolabs.org/~dhelder




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