IPDL/Five minute example: Difference between revisions

Jump to navigation Jump to search
Line 142: Line 142:


== Put it all together ==
== Put it all together ==
First, compile the C++ actor implementations.  This is beyond the scope of this guide; see the Mozilla build documentation.
If you put your code in the <code>ipc/test-harness</code>, you can run it by invoking the test-harness binary.  Navigate to your dist/bin directory and run
$ ipctestharness
If all goes well, you should see the output
[TestParent] in DoStuff()
[TestChild] Hello,
[TestParent] world!
fly by eventually.  Remember, the first and third messages are printed by the parent process, and the second is printed by the child process.


== Write a slightly less trivial protocol ==
== Write a slightly less trivial protocol ==
Confirmed users
699

edits

Navigation menu