Re: [gnet-dev] [PATCH] bind outgoing connections to local interface
- From: "David A. Helder" <dhelder gizmolabs org>
- To: Michael Alger <gnet mm quex org>
- Cc: gnet-dev lists gnetlibrary org
- Subject: Re: [gnet-dev] [PATCH] bind outgoing connections to local interface
- Date: Tue, 09 Dec 2003 21:25:32 -0500
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]