Bind an outgoing NHTTP connection to a specific interface?

View: New views
2 Messages — Rating Filter:   Alert me  

Bind an outgoing NHTTP connection to a specific interface?

by pzfreo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oleg

If you have a system that has several network interfaces, is there a
way to bind an outgoing HTTP connection to a specific interface?

Thanks
Paul

--
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@...

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Bind an outgoing NHTTP connection to a specific interface?

by olegk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2008-09-18 at 18:04 +0100, Paul Fremantle wrote:
> Oleg
>
> If you have a system that has several network interfaces, is there a
> way to bind an outgoing HTTP connection to a specific interface?
>

Hi Paul

One can bind an outgoing HTTP connection to an arbitrary local address
by as giving a non null SocketAddress as a second parameter to the
ConnectingIOReactor#connect() method

http://hc.apache.org/httpcomponents-core/httpcore-nio/apidocs/org/apache/http/nio/reactor/ConnectingIOReactor.html

Hope this helps

Oleg


> Thanks
> Paul
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

LightInTheBox - Buy quality products at wholesale price!