To enable TCP applications to use the advanced features
of SCTP, such as sending and receiving ancillary information, and
receiving event notifications, TCP applications can use the sendmsg()() and recvmsg()() calls. However,
applications must define the _XOPEN_SOURCE_EXTENDED macro and the /usr/lib/libxnet library while
compiling the application, because only the X/OPEN style msghdr structure supports the ancillary
mechanism.
SCTP APIs provide applications with an alternate
method to read and write ancillary information, and receive event
notifications, without using the msghdr structure.
The alternate method is to use the sctp_sendmsg()() and sctp_recvmsg()() calls instead of using the sendmsg()() and recvmsg()() calls. These
applications need not be compiled using the /usr/lib/libxnet library. You can compile these applications using the /usr/lib/libsctp library.