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 22 - Endpoints Reference / Functions


Establishing Connection

To use a connection-oriented endpoint you must first bind the endpoint, then you must use the functions described in this section to establish the connection. The active peer uses the OTConnect and OTRcvConnect functions; the passive peer uses the OTListen and OTAccept functions. You use the same functions to establish a connection for both transactionless and transaction-based endpoints.

Once you have established a connection, you can send and receive data. How you do this depends on whether you are using transactionless or transaction-based service. After you are done transferring data and no longer need to stay connected, you must explicitly tear down the connection by using the functions described in the section "Tearing Down a Connection".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998