1SCTP_OPT_INFO(3) Linux Programmer's Manual SCTP_OPT_INFO(3)
2
3
4
6 sctp_optinfo - Get options on a SCTP socket.
7
9 #include <sys/types.h>
10 #include <sys/socket.h>
11 #include <netinet/sctp.h>
12
13 int sctp_opt_info(int sd, sctp_assoc_t id, int opt,
14 void * arg, socklen_t * size);
15
17 sctp_opt_info is a wrapper library function that can be used to get
18 SCTP level options on a socket. sd is the socket descriptor for which
19 the option is requested. For one-to-many style sockets, id specifies
20 the association to query. For one-to-one style sockets, id is ignored.
21 opt specifes the SCTP socket option to get. arg is an option-specific
22 structure buffer provided by the caller. size is a value-result param‐
23 eter, initially containing the size of the buffer pointed to by arg and
24 modifed on return to indicate the actual size of the value returned.
25
27 On success, sctp_opt_info returns 0 and on failure -1 is returned with
28 errno set to the appropriate error code.
29
31 sctp(7) sctp_bindx(3), sctp_connectx(3), sctp_sendmsg(3), sctp_send(3),
32 sctp_recvmsg(3), sctp_peeloff(3), sctp_getpaddrs(3), sctp_getladdrs(3),
33
34
35
36Linux 2.6 2004-01-30 SCTP_OPT_INFO(3)