[From nobody Tue Aug 4 15:39:41 2009 Message-ID: <49CA4D80.3010306@astrocorp.com> Date: Wed, 25 Mar 2009 10:28:00 -0500 From: Bryan Duff <bduff@astrocorp.com> User-Agent: Thunderbird 2.0.0.16 (X11/20080807) MIME-Version: 1.0 To: Joe Orton <joe@manyfish.co.uk> Subject: Re: Binding to an IP References: <49C92748.3030302@astrocorp.com> <20090324203625.GB23168@manyfish.co.uk> In-Reply-To: <20090324203625.GB23168@manyfish.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit My usage of ne_set_local_addr. If I use ne_set_localaddr I don't see any traffic generated (nothing goes over the wire), as soon as I comment it out, it works (although it goes from the wrong IP). //start snip ... session created ne_inet_addr *addr = ne_iaddr_make(ne_iaddr_ipv4, "192.168.1.2"); ne_set_localaddr(session, addr); ... create request ... run request/ ... destory request/buffer/session, etc. if(addr) { ne_iaddr_free(addr); } //end snip This is with neon 0.28.3. Thanks. -Bryan Joe Orton wrote: > On Tue, Mar 24, 2009 at 01:32:40PM -0500, Bryan Duff wrote: > >> Can this be done currently? Or do I have to add raw_connect_ip (or some >> such thing)? >> > > Hi - depends on exactly what you're after. If you want to bind the > local end of any TCP connections used by a session to a specific IP > address, that can be done in neon >= 0.28 using ne_set_localaddr() - > create an ne_inet_addr to pass in using ne_iaddr_make() or > ne_addr_resolve(). > > Regards, Joe > ]