Important: The information in this document is obsolete and should not be used for new development.
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 theOTConnect
andOTRcvConnect
functions; the passive peer uses theOTListen
andOTAccept
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".