On Fri, Jul 20, 2001 at 09:11:33AM -0400, Rocco Caputo wrote:
> On Thu, Jul 19, 2001 at 10:40:25PM -0600, Chris Fedde wrote:
> > Is it posible for the POE::Wheel::SocketFactory to bind to more than one IP
> > address or does that reqire multiple factories?
> 
> It can if they're all on the same subnet.  A BindAddress of 10.1.2.0
> should bind a socket factory to 10.1.2.0/24.
> 
> If you mean several separate bind() calls, each to a completely
> different address, no.  I didn't know that's possible.  If it is, I
> can extend SocketFactory to accept a list reference for bind
> addresses: BindAddress => [ '10.1.2.3', '10.2,4,6', '10.3.6.9' ]

No, it's not possible;  various software that provide this functionality
(for example, multiple ListenAddr tokens in sshd_config) all create
several sockets.

As a matter of fact, I think this kind of functionality would be
extremely useful to incorporate into SocketFactory wheel.  It should not
matter for SocketFactory users whether there is one or many listening
sockets because all they get is a connected socket;  it looks like a
useful relatively high-level extention.

Cheers,
&Anton.
-- 
May the tuna salad be with you.

Reply via email to