develooper Front page | perl.perl5.porters | Postings from October 1999

Re: Make IO::Socket::INET pick up LocalAddr from the ENVIRONMENT

Thread Previous
From:
Stephen Zander
Date:
October 27, 1999 17:16
Subject:
Re: Make IO::Socket::INET pick up LocalAddr from the ENVIRONMENT
Message ID:
874sfc1gs6.fsf@pooh.fire-swamp.net
>>>>> "Sarathy" == Gurusamy Sarathy <gsar@ActiveState.com> writes:
    Sarathy> A global in the IO:: namespace is better, but it seems to
    Sarathy> me the default for LocalAddr should automatically be the
    Sarathy> most typical/reasonable one ("localhost"?), without
    Sarathy> people having to poke around globals.

On a single-homed box that happens automatically, I think Andreas is
trying to handle systems, like most of the ones here, where there are
more that on physical interface or more than one logical address
associated with a physical interface and perhaps a fire-wall in the
way that will only allow packets originating of a particular address.

'localhost' by the way would be very bad.  It's a little hard for the
remote system to get packets back to you. :)

-- 
Stephen

"A duck!"

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About