Write Data

After you send data over the transport connection with write(), tirdwr passes data through the transport provider. If you send a zero-length data packet, tirdwr discards the message. If the transport connection is aborted, a hang-up condition is generated on the stream and the write() calls fail, and errno is set to ENXIO. This problem might occur when the remote user aborts the connection using t_snddis(). You can still retrieve any available data after a hang-up. For more information, see the write(2) an t_snddis(3C) man pages.