Asynchronously Establishing a Connection
A process can attempt a connection and asynchronously complete the
connection. The process first creates the connecting endpoint and, using
fcntl(), configures the endpoint for non-blocking operation. As
with connectionless data transfers, the endpoint can also be configured for
asynchronous notification upon completion of the connection and subsequent data
transfers. The connecting process then uses t_connect()
to initiate
setting up the transfer. Then t_rcvconnect()
is used to confirm the
establishment of the connection. For more information, see the
t_connect(3C) and
t_rcvconnect(3C) man pages.