Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting info on Mach Messages



I'm trying to find attributes of the sender of an incoming mach message.
I'm using DO to do inter-task communications and I need to be able to get
reliable info, like a pid, of the sender of an incoming mach message. Is
this possible? I was looking at NSMachPort's handleMachMessage: to get info
on the incoming mach message. However, I'm not sure what the incoming data
is. The docs say it starts with a msg_header_t struct, but that's all. Can
I get info on the sending task from here? If so, how do I take the raw
(void*) data that comes to handleMachMessage: and get readable data from it?




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.