On Wed, 2017-08-23 at 17:58 +0100, Gordon Sim wrote: > On 23/08/17 17:35, Steve Huston wrote: > > - Host A wants to set up a pull route to pull messages from Host B > > - Host A has two IP addresses assigned to it > > - When Host A connects to B, can A specify a particular source IP address > > that B will see it as? >
When you say "see it as" do you mean via POSIX getpeername() or equivalent? This is possible at the socket level using SO_BINDTODEVICE: https://stackoverflow.com/questions/4404572/bind-before-connect-at-clie nt-code How common do you think this use case might be? Using getpeername() at the socket layer is low-level and less flexible than passing a reply_to address or a link/connection property at the AMQP layer. The socket layer peer name only works for a direct TCP connection, a reply_to can redirected/load balanced/bridged to private networks via dispatch router, can allow DNS redirect/load balancing etc. Cheers, Alan. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org