Socket and multi-homed hosts
Randal L. Schwartz
merlyn at stonehenge.com
Fri Dec 29 20:13:01 UTC 2000
After an admittedly cursory examination of Socket, I see only
the comment of:
The netType parameter is platform dependent and can be used to
encode both the protocol type (IP, Xerox XNS, etc.) and/or the
physical network interface to use if this host is connected to
multiple networks. A zero netType means to use IP protocols
and the primary (or only) network interface.
in Socket>>primSocketCreateNetwork:type:receiveBufferSize:sendBufSize:semaIndex:
Has anyone done any work to document how this works for the various
platforms, or try to make this a little more portable?
Specifically, I need this to bind to a particular interface on a Linux
box for my ISP.
It looks like sqUnixSocket.c ignores that parameter, creating
an INADDR_ANY socket every time.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
More information about the Squeak-dev
mailing list
|