freebsd man page for sctp_getassocid

Query: sctp_getassocid

OS: freebsd

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SCTP_GETASSOCID(3)					   BSD Library Functions Manual 					SCTP_GETASSOCID(3)

NAME
sctp_getassocid -- return an association id for a specified socket address.
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h> #include <sys/socket.h> #include <netinet/sctp.h> sctp_assoc_t sctp_getassocid(int s, struct sockaddr *addr);
DESCRIPTION
The sctp_getassocid() call attempts to look up the specified socket address addr and find the respective association identification.
RETURN VALUES
The call returns the association id upon success and 0 is returned upon failure.
ERRORS
The sctp_getassocid() function can return the following errors: [ENOENT] The address does not have an association setup to it. [EBADF] The argument s is not a valid descriptor. [ENOTSOCK] The argument s is not a socket.
SEE ALSO
sctp(4)
BSD
December 15, 2006 BSD
Related Man Pages
sctp_generic_recvmsg(2) - debian
sctp_peeloff(3socket) - sunos
sctp_peeloff(3socket) - opensolaris
sctp_generic_recvmsg(2) - freebsd
sctp_getpaddrs(3) - hpux
Similar Topics in the Unix Linux Community
Mac OS X: Based on UNIX - Solid As a Rock
Memory Leaks
Is UNIX an open source OS ?
Reason for no directory creation date
Is it safe to install x86 Solaris 10 U6 after installed-Linux-and-FreeBSD?