Re: What is the equivallent of CFMessagePortRef in Cocoa?
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.