sctp_opt_info man page on GhostBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
GhostBSD logo
[printable version]

SCTP_OPT_INFO(3)	 BSD Library Functions Manual	      SCTP_OPT_INFO(3)

NAME
     sctp_opt_info — get SCTP socket information

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <sys/types.h>
     #include <sys/socket.h>
     #include <netinet/sctp.h>

     int
     sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg,
	 socklen_t *size);

DESCRIPTION
     The sctp_opt_info() call provides a multi-os compatible method for get‐
     ting specific getsockopt() data where an association identification needs
     to be passed into the operating system.  For FreeBSD a direct
     getsockopt() may be used, since FreeBSD has the ability to pass informa‐
     tion into the operating system on a getsockopt() call.  Other operating
     systems may not have this ability.	 For those who wish to write portable
     code amongst multiple operating systems this call should be used for the
     following SCTP socket options.

     SCTP_RTOINFO

     SCTP_ASSOCINFO

     SCTP_PRIMARY_ADDR

     SCTP_SET_PEER_PRIMARY_ADDR

     SCTP_STATUS

     SCTP_GET_PEER_ADDR_INFO

     SCTP_AUTH_ACTIVE_KEY

     SCTP_PEER_AUTH_CHUNKS

     SCTP_LOCAL_AUTH_CHUNKS

RETURN VALUES
     The call returns 0 on success and -1 upon error.

ERRORS
     The sctp_opt_info() function can return the following errors:

     [EINVAL]		The argument arg value was invalid.

     [EOPNOTSUPP]	The argument opt was not one of the above listed SCTP
			socket options.

     [EBADF]		The argument s is not a valid descriptor.

     [ENOTSOCK]		The argument s is not a socket.

SEE ALSO
     getsockopt(2), sctp(4)

BSD			       December 15, 2006			   BSD
[top]

List of man pages available for GhostBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net