Making the Endpoint Asynchronous
After the endpoint has been established using t_open
(), and its identity established using t_bind
(), the endpoint can be
configured for asynchronous service. For more information, see the
t_open
(3C) and
t_bind
(3C) man pages. Use the fcntl
()
interface to
set the O_NONBLOCK
flag on the endpoint. Thereafter, calls to
t_sndudata
()
for which no buffer space is immediately available
return -1
with t_errno
set to
TFLOW
. Similarly, calls to t_rcvudata
()
for
which no data are available return -1
with
t_errno
set to TNODATA
. For more
information, see the
t_sndudata
(3C) and
t_rcvudata
(3C) man pages.