• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mach message format/structure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Mach message format/structure
      • From: Kevin Van Vechten <email@hidden>
  • Prev by Date: Re: X11 libraries for fortran?
  • Next by Date: Mac OS X 10.2.8 SDK, XCode 2.2 and in6_var.h
  • Previous by thread: Notification of IOService open
  • Next by thread: Re: Mach message format/structure
  • Index(es):
    • Date
    • Thread