sctp_opt_info.3 (223225) | sctp_opt_info.3 (233648) |
---|---|
1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" From: @(#)send.2 8.2 (Berkeley) 2/21/94 | 1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" From: @(#)send.2 8.2 (Berkeley) 2/21/94 |
33.\" $FreeBSD: head/lib/libc/net/sctp_opt_info.3 223225 2011-06-18 10:36:05Z tuexen $ | 33.\" $FreeBSD: head/lib/libc/net/sctp_opt_info.3 233648 2012-03-29 05:02:12Z eadler $ |
34.\" 35.Dd June 18, 2011 36.Dt SCTP_OPT_INFO 3 37.Os 38.Sh NAME 39.Nm sctp_opt_info 40.Nd get SCTP socket information 41.Sh LIBRARY 42.Lb libc 43.Sh SYNOPSIS 44.In sys/types.h 45.In sys/socket.h 46.In netinet/sctp.h 47.Ft int 48.Fn sctp_opt_info "int sd" "sctp_assoc_t id" "int opt" "void *arg" "socklen_t *size" 49.Sh DESCRIPTION 50The 51.Fn sctp_opt_info 52call provides a multi-os compatible method for getting | 34.\" 35.Dd June 18, 2011 36.Dt SCTP_OPT_INFO 3 37.Os 38.Sh NAME 39.Nm sctp_opt_info 40.Nd get SCTP socket information 41.Sh LIBRARY 42.Lb libc 43.Sh SYNOPSIS 44.In sys/types.h 45.In sys/socket.h 46.In netinet/sctp.h 47.Ft int 48.Fn sctp_opt_info "int sd" "sctp_assoc_t id" "int opt" "void *arg" "socklen_t *size" 49.Sh DESCRIPTION 50The 51.Fn sctp_opt_info 52call provides a multi-os compatible method for getting |
53specific | 53specific |
54.Fn getsockopt 55data where an association identification needs to be passed 56into the operating system. 57For 58.Fx 59a direct 60.Fn getsockopt 61may be used, since 62.Fx 63has the ability to pass information 64into the operating system on a 65.Fn getsockopt 66call. 67Other operating systems may not have this ability. 68For those 69who wish to write portable code amongst multiple operating systems 70this call should be used for the following SCTP 71socket options. 72.Pp | 54.Fn getsockopt 55data where an association identification needs to be passed 56into the operating system. 57For 58.Fx 59a direct 60.Fn getsockopt 61may be used, since 62.Fx 63has the ability to pass information 64into the operating system on a 65.Fn getsockopt 66call. 67Other operating systems may not have this ability. 68For those 69who wish to write portable code amongst multiple operating systems 70this call should be used for the following SCTP 71socket options. 72.Pp |
73.Dv SCTP_RTOINFO | 73.Dv SCTP_RTOINFO |
74.Pp 75.Dv SCTP_ASSOCINFO 76.Pp 77.Dv SCTP_PRIMARY_ADDR 78.Pp 79.Dv SCTP_PEER_ADDR_PARAMS 80.Pp 81.Dv SCTP_DEFAULT_SEND_PARAM --- 63 unchanged lines hidden --- | 74.Pp 75.Dv SCTP_ASSOCINFO 76.Pp 77.Dv SCTP_PRIMARY_ADDR 78.Pp 79.Dv SCTP_PEER_ADDR_PARAMS 80.Pp 81.Dv SCTP_DEFAULT_SEND_PARAM --- 63 unchanged lines hidden --- |