in reply to Re: Re: Re: local socket
in thread local socket

OK, thanks. It's a mostly-ignored argument to bind(). It never occured to me to use it to select for localhost.

Now I wonder if more than one listener can exist at the same time on the same port, with mutually exclusive addresses? So get one listener optomized for local connections, and one that works for all clients.

—John

Replies are listed 'Best First'.
(tye)Re: local socket
by tye (Sage) on Jun 04, 2001 at 23:17 UTC

    Yes. I believe that you can even have one listener bound to a specific address and another bound to INADDR_ANY and connections will come only to the listener that is "most specifically" appropriate. However, this last case is the type of stuff that I never find documented.

            - tye (but my friends call me "Tye")