Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 26 - Ports Reference / Functions
Registering New Ports /


OTRegisterPort

Register a port.

C INTERFACE
OSStatus OTRegisterPort(OTPortRecord* portInfo, 
                     void* ref);
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
portInfo
A pointer to the port record for the port you want to register.
ref
A context pointer for your use.
function result
See Appendix B.
DISCUSSION
The function registers the port and returns the name it is registered under in the fPortName field of the port record.

Use the OTUnregisterPort function to unregister the port.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998