• 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: Distributed Notifications to C / C++ applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed Notifications to C / C++ applications


  • Subject: Re: Distributed Notifications to C / C++ applications
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 29 Mar 2008 19:57:57 -0700


On 29 Mar '08, at 6:51 PM, Rick Langschultz wrote:

I am looking to create an application written in C / C++ that will send notifications to a Cocoa application and the Cocoa application will communicate back. Since I am using multiple server environments will / is this possible? Or should I just stick with Cocoa shell tools to accomplish this?

Mach ports are probably the best way to do this. The "Advanced Mac OS X Programming" book covers them, including how to use them from Cocoa APIs.


(I did this using Unix domain sockets, for PubSub, which initially seemed simpler but got fairly complex due to security issues. The socket actually exists in the filesystem, and you have to be very careful about where to put it, to avoid allowing unauthorized processes to access it.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Distributed Notifications to C / C++ applications (From: Rick Langschultz <email@hidden>)

  • Prev by Date: Distributed Notifications to C / C++ applications
  • Next by Date: Threads and Core Data, bindings results in view corruption
  • Previous by thread: Distributed Notifications to C / C++ applications
  • Next by thread: Threads and Core Data, bindings results in view corruption
  • Index(es):
    • Date
    • Thread