What is the equivallent of CFMessagePortRef in Cocoa?
What is the equivallent of CFMessagePortRef in Cocoa?
- Subject: What is the equivallent of CFMessagePortRef in Cocoa?
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 13 Dec 2003 20:27:26 +0100
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.