• 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
Sockaddr_un and long paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sockaddr_un and long paths


  • Subject: Sockaddr_un and long paths
  • From: Dave Camp <email@hidden>
  • Date: Fri, 29 Aug 2014 12:19:16 -0700

I'm wanting to use a Unix domain socket to communicate between an iOS app and its iOS 8 extension when they are both running. I've written some test code where I bind the socket to a path in a shared app group container and it appears to work fine on my phone. I can send messages back and forth with no issues. So far so good.

However, the path to a shared app group container on iOS is 84 bytes long (plus whatever file name I tack on) and sockaddr_un.sun_path only holds 104 bytes. I'm nervous that a future change to app group paths would push me over the size limit.

Is this a hard coded limitation, or can I allocate a larger than normal socksddr_un struct if needed?

Or, is there a better way to handle this?

Thanks,
Dave
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Debugging UDP Multicast communication
  • Previous by thread: Debugging UDP Multicast communication
  • Index(es):
    • Date
    • Thread