Getting info on Mach Messages
Getting info on Mach Messages
- Subject: Getting info on Mach Messages
- From: email@hidden (mikevannorsdel)
- Date: Fri, 30 Nov 2001 18:47:29 -0700
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?