• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: determining if connection is local
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: SIOCGARP?
  • Next by Date: Re: Update APBS port mappings
  • Previous by thread: SIOCGARP?
  • Next by thread: SSLWrite and SSLRead mutually exclusive?
  • Index(es):
    • Date
    • Thread