Re: determining if connection is local
Re: determining if connection is local
- Subject: Re: determining if connection is local
- From: Chaz McGarvey <email@hidden>
- Date: Wed, 1 Oct 2003 18:29:50 -0600
Hello:
I'd be a *lot* happier if you used a Unix domain socket for local
comms. The sockets API is pretty transport independent in this
respect. To switch to a Unix domain socket all you need to do is
change the first parameter of "socket" to AF_UNIX, change the server
to bind to a path (in a sockaddr_un), and change the list to connect
to that same path. The rest of your sockets code should work pretty
much transparently.
I've taken my time tweaking everything to work with AF_UNIX. Now I'm
wondering what I should use for the sun_path that is 108 characters or
less. Is there a special place I should use?
Thanks,
Chaz McGarvey
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.