Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SCTP_GETASSOCID(3)	 BSD Library Functions Manual	    SCTP_GETASSOCID(3)

NAME
     sctp_getassocid --	return an association id for a specified socket	ad-
     dress

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 ad-
     dress 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

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=sctp_getassocid&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help