MachPortDump

Last Revision:
Version 1.1, 2005-08-10
This sample code has been updated to include a project (for Xcode 2.1) to produce a universal binary and there were no code changes required for it to run correctly on the Developer Transition Systems.
Build Requirements:
Mac OS X 10.4, Xcode 2.1
Runtime Requirements:
Mac OS X

This sample dumps out the Mach port name space of a process. It is designed to be used as a tool by developers who are writing inter-process communication code on Mac OS X. Typically this code is based on Mach ports, or some higher-level wrapper around Mach ports. You can run this sample to check to see whether your code leaks ports.