Important: The information in this document is obsolete and should not be used for new development.
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 thefPortName
field of the port record.Use the
OTUnregisterPort
function to unregister the port.