sctp_getassocid.3 (7c3768006d0adbe052143f13f0d969f422c9fd3e) sctp_getassocid.3 (16c90ceeb35fa6183bb1348c38c30d5f13a5be17)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 34 unchanged lines hidden (view full) ---

43.In sys/types.h
44.In sys/socket.h
45.In netinet/sctp.h
46.Ft sctp_assoc_t
47.Fn sctp_getassocid "int s" "struct sockaddr *addr"
48.Sh DESCRIPTION
49The
50.Fn sctp_getassocid
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 34 unchanged lines hidden (view full) ---

43.In sys/types.h
44.In sys/socket.h
45.In netinet/sctp.h
46.Ft sctp_assoc_t
47.Fn sctp_getassocid "int s" "struct sockaddr *addr"
48.Sh DESCRIPTION
49The
50.Fn sctp_getassocid
51call attempts to lookup the specified socket address
51call attempts to look up the specified socket address
52.Fa addr
53and find the respective association identification.
54.Pp
55.Sh RETURN VALUES
52.Fa addr
53and find the respective association identification.
54.Pp
55.Sh RETURN VALUES
56The call returns the association id upon success and a
56The call returns the association id upon success and
570 is returned upon failure.
58.Sh ERRORS
59The
60.Fn sctp_getassocid
61function can return the following errors.
62.Bl -tag -width Er
63.It Bq Er ENOENT
64The address does not have an association setup to it.
65.It Bq Er EBADF
66The argument
67.Fa s
68is not a valid descriptor.
69.It Bq Er ENOTSOCK
70The argument
71.Fa s
72is not a socket.
73.El
74.Sh SEE ALSO
570 is returned upon failure.
58.Sh ERRORS
59The
60.Fn sctp_getassocid
61function can return the following errors.
62.Bl -tag -width Er
63.It Bq Er ENOENT
64The address does not have an association setup to it.
65.It Bq Er EBADF
66The argument
67.Fa s
68is not a valid descriptor.
69.It Bq Er ENOTSOCK
70The argument
71.Fa s
72is not a socket.
73.El
74.Sh SEE ALSO
75.Xr sctp 4 ,
76
75.Xr sctp 4