tail head cat sleep
QR code linking to this page

Manual Pages  — SCTP_GETASSOCID

NAME

sctp_getassocid – return an association id for a specified socket address

CONTENTS

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)

SCTP_GETASSOCID (3) December 15, 2006

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Do you laugh when the waiter drops a tray full of dishes? Unix weenies do. They're the first ones to laugh at hapless users, trying to figure out an error message that doesn't have anything to do with what they just typed.
— The Unix Haters' handbook