sctp_getaddrlen man page on FreeBSD

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

SCTP_GETADDRLEN(3)	 BSD Library Functions Manual	    SCTP_GETADDRLEN(3)

     sctp_getaddrlen — return the address length of an address family

     Standard C Library (libc, -lc)

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

     sctp_getaddrlen(sa_family_t family);

     The sctp_getaddrlen() function returns the size of a specific address
     family.  This function is provided for application binary compatability
     since it provides the application with the size the operating system
     thinks the specific address family is.  Note that the function will actu‐
     ally create an SCTP socket and then gather the information via a
     getsockopt() system calls.	 If for some reason a SCTP socket cannot be
     created or the getsockopt() call fails, an error will be returned with
     errno set as specified in the socket() or getsockopt() system call.

     The call returns the number of bytes that the operating system expects
     for the specific address family or -1.

     The sctp_getaddrlen() function can return the following errors:

     [EINVAL]		The address family specified does NOT exist.

     getsockopt(2), socket(2), sctp(4)

BSD			       December 15, 2006			   BSD

List of man pages available for FreeBSD

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]
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