• 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: What is the equivallent of CFMessagePortRef in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the equivallent of CFMessagePortRef in Cocoa?


  • Subject: Re: What is the equivallent of CFMessagePortRef in Cocoa?
  • From: Chris Kane <email@hidden>
  • Date: Sat, 20 Dec 2003 14:30:27 -0800

There is no direct equivalent. NSMessagePort is for talking over DO via CFMessagePort, but it can't be used outside the DO context.

Distributed Objects is what is provided for IPC at the Cocoa level.

Chris Kane
Cocoa Frameworks, Apple


On Dec 13, 2003, at 11:27 AM, Stiphane Sudre wrote:

I've been looking at the Foundation Documentation and I must confess I don't understand at all which class is supposed to be the equivalent of CFMessagePortRef...

Is it NSMessagePort or NSPortMessage?

Moreover the Discussion part of the documentation is completely omitting these classes AFAIK and I haven't found any clear sample code or tutorial explaining how to do the equivalent of this on the server side:

CFMessagePortRef myLocalMessagePort;
CFRunLoopSourceRef myRunLoopSource;

myLocalMessagePort =CFMessagePortCreateLocal(NULL, [...]);

myRunLoopSource =CFMessagePortCreateRunLoopSource(NULL, myLocalMessagePort,[...]);

CFRunLoopAddSource(CFRunLoopGetCurrent(), myRunLoopSource,[...]);

and the equivalent of this on the client side :

CFMessagePortRef tRemote;

tRemote=CFMessagePortCreateRemote(NULL,[...]);

CFMessagePortSendRequest(tRemote,[...]);

----------------------------------------------------

I can't believe it's easier to do this in CoreFoundation (which is my current API fail-over solution) than in Foundation.

Any link or RTFM (with a link)?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: What is the equivallent of CFMessagePortRef in Cocoa?
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re NSConnection on same machine between different users (via 10.3 fast switching)
  • Next by Date: Re: CFPropertyList and NSDictionary/CFDictionary
  • Previous by thread: What is the equivallent of CFMessagePortRef in Cocoa?
  • Next by thread: Re: What is the equivallent of CFMessagePortRef in Cocoa?
  • Index(es):
    • Date
    • Thread