Mach message format/structure
Mach message format/structure
- Subject: Mach message format/structure
- From: Rob Ballantyne <email@hidden>
- Date: Mon, 14 Nov 2005 22:28:43 -0800
Hi,
I'm trying to use the mach_msg interface to pass around messages
between two userland tasks. I'm having trouble with the calls to
mach_msg complaining about an 'invalid msg-header' when I try to
associate a local_port (and port_right?) with the message so that
the server can respond. If I set local_port to MACH_PORT_NULL I
can send to the server, setting it to anything other than that
gives me the invalid msg-header error.
Is it possible with out setting the MACH_MSGH_BITS_COMPLEX to
enable a server response or does the entire message transaction
have to be of the 'complex' type to send a send-right to the
server process?
Is there documentation on the mach_msgh_bits field of the header?
I've got the mach_msg_header.html document in xnu-*/osfmk/man
and it describes the bits but doesn't talk about appropriate use of
them. Is there anything that talks about correct use of the
bit fields?
Finally, does anyone have a good example of a non-MIG server
that demonstrates much of what I've mentioned above?
Many Thanks,
Rob
--
--------------------------------------------------------------------------
| Rob Ballantyne | |
| email: email@hidden | _____ |
| Research Manager | | |
| CECM, Dept of Mathematics | -----------O----------- |
| Simon Fraser University | |
| Burnaby, BC, CANADA V5A 1S6 | |
--------------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden