GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SCTP_GETADDRLEN (3)

NAME

sctp_getaddrlen - return the address length of an address family

CONTENTS

Library
Synopsis
Description
Return Values
Errors
See Also

LIBRARY


.Lb libc

SYNOPSIS


.In sys/types.h
.In sys/socket.h
.In netinet/sctp.h int sctp_getaddrlen sa_family_t family

DESCRIPTION

The sctp_getaddrlen function returns the size of a specific address family. This function is provided for application binary compatibility since it provides the application with the size the operating system thinks the specific address family is. Note that the function will actually 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.

RETURN VALUES

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

ERRORS

The sctp_getaddrlen function can return the following errors:
[EINVAL]
  The address family specified does NOT exist.

SEE ALSO

getsockopt(2), socket(2), sctp(4)
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.