xref: /freebsd/lib/libc/net/sctp_send.3 (revision 3d36ac98772ff4b4ad29e7457cb6e14231e4d426)
1d8b5fd91SRandall Stewart.\" Copyright (c) 1983, 1991, 1993
2d8b5fd91SRandall Stewart.\"	The Regents of the University of California.  All rights reserved.
3d8b5fd91SRandall Stewart.\"
4d8b5fd91SRandall Stewart.\" Redistribution and use in source and binary forms, with or without
5d8b5fd91SRandall Stewart.\" modification, are permitted provided that the following conditions
6d8b5fd91SRandall Stewart.\" are met:
7d8b5fd91SRandall Stewart.\" 1. Redistributions of source code must retain the above copyright
8d8b5fd91SRandall Stewart.\"    notice, this list of conditions and the following disclaimer.
9d8b5fd91SRandall Stewart.\" 2. Redistributions in binary form must reproduce the above copyright
10d8b5fd91SRandall Stewart.\"    notice, this list of conditions and the following disclaimer in the
11d8b5fd91SRandall Stewart.\"    documentation and/or other materials provided with the distribution.
12d8b5fd91SRandall Stewart.\" 3. All advertising materials mentioning features or use of this software
13d8b5fd91SRandall Stewart.\"    must display the following acknowledgement:
14d8b5fd91SRandall Stewart.\"	This product includes software developed by the University of
15d8b5fd91SRandall Stewart.\"	California, Berkeley and its contributors.
16d8b5fd91SRandall Stewart.\" 4. Neither the name of the University nor the names of its contributors
17d8b5fd91SRandall Stewart.\"    may be used to endorse or promote products derived from this software
18d8b5fd91SRandall Stewart.\"    without specific prior written permission.
19d8b5fd91SRandall Stewart.\"
20d8b5fd91SRandall Stewart.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21d8b5fd91SRandall Stewart.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22d8b5fd91SRandall Stewart.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23d8b5fd91SRandall Stewart.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24d8b5fd91SRandall Stewart.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25d8b5fd91SRandall Stewart.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26d8b5fd91SRandall Stewart.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27d8b5fd91SRandall Stewart.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28d8b5fd91SRandall Stewart.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29d8b5fd91SRandall Stewart.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30d8b5fd91SRandall Stewart.\" SUCH DAMAGE.
31d8b5fd91SRandall Stewart.\"
32d8b5fd91SRandall Stewart.\" $FreeBSD$
33d8b5fd91SRandall Stewart.\"
34d8b5fd91SRandall Stewart.Dd December 15, 2006
35d8b5fd91SRandall Stewart.Dt SCTP_SEND 3
36d8b5fd91SRandall Stewart.Os
37d8b5fd91SRandall Stewart.Sh NAME
3816c90ceeSChristian Brueffer.Nm sctp_send ,
39d8b5fd91SRandall Stewart.Nm sctp_sendx
40d8b5fd91SRandall Stewart.Nd send a message from an SCTP socket
41d8b5fd91SRandall Stewart.Sh LIBRARY
42d8b5fd91SRandall Stewart.Lb libc
43d8b5fd91SRandall Stewart.Sh SYNOPSIS
44d8b5fd91SRandall Stewart.In sys/types.h
45d8b5fd91SRandall Stewart.In sys/socket.h
467c376800SRandall Stewart.In netinet/sctp.h
47d8b5fd91SRandall Stewart.Ft ssize_t
4816c90ceeSChristian Brueffer.Fo sctp_send
4916c90ceeSChristian Brueffer.Fa "int sd" "const void *msg" "size_t len"
5016c90ceeSChristian Brueffer.Fa "const struct sctp_sndrcvinfo *sinfo" "int flags"
5116c90ceeSChristian Brueffer.Fc
52d8b5fd91SRandall Stewart.Ft ssize_t
5316c90ceeSChristian Brueffer.Fo sctp_sendx
5416c90ceeSChristian Brueffer.Fa "int sd" "const void *msg" "size_t len" "struct sockaddr *addrs"
5516c90ceeSChristian Brueffer.Fa "int addrcnt" "const struct sctp_sndrcvinfo *sinfo" "int flags"
5616c90ceeSChristian Brueffer.Fc
57d8b5fd91SRandall Stewart.Sh DESCRIPTION
58d8b5fd91SRandall StewartThe
59d8b5fd91SRandall Stewart.Fn sctp_send
6016c90ceeSChristian Brueffersystem call
61d8b5fd91SRandall Stewartis used to transmit a message to another SCTP endpoint.
62d8b5fd91SRandall Stewart.Fn sctp_send
63d8b5fd91SRandall Stewartmay be used to send data to an existing association for both
64d8b5fd91SRandall Stewartone-to-many (SOCK_SEQPACKET) and one-to-one (SOCK_STREAM) socket types.
65d8b5fd91SRandall StewartThe length of the message
66d8b5fd91SRandall Stewart.Fa msg
67d8b5fd91SRandall Stewartis given by
68d8b5fd91SRandall Stewart.Fa len .
69d8b5fd91SRandall StewartIf the message is too long to pass atomically through the
7016c90ceeSChristian Bruefferunderlying protocol,
7116c90ceeSChristian Brueffer.Va errno
7216c90ceeSChristian Bruefferis set to
7316c90ceeSChristian Brueffer.Er EMSGSIZE ,
7416c90ceeSChristian Brueffer-1 is returned, and
75d8b5fd91SRandall Stewartthe message is not transmitted.
76d8b5fd91SRandall Stewart.Pp
77d8b5fd91SRandall StewartNo indication of failure to deliver is implicit in a
7844d9c281SChristian Brueffer.Fn sctp_send .
79d8b5fd91SRandall StewartLocally detected errors are indicated by a return value of -1.
80d8b5fd91SRandall Stewart.Pp
8144d9c281SChristian BruefferIf no space is available at the socket to hold
82d8b5fd91SRandall Stewartthe message to be transmitted, then
83d8b5fd91SRandall Stewart.Fn sctp_send
84d8b5fd91SRandall Stewartnormally blocks, unless the socket has been placed in
85d8b5fd91SRandall Stewartnon-blocking I/O mode.
86d8b5fd91SRandall StewartThe
8716c90ceeSChristian Brueffer.Xr select 2
88d8b5fd91SRandall Stewartsystem call may be used to determine when it is possible to
89d8b5fd91SRandall Stewartsend more data on one-to-one type (SOCK_STREAM) sockets.
90d8b5fd91SRandall Stewart.Pp
91d8b5fd91SRandall StewartThe
92d8b5fd91SRandall Stewart.Fa sinfo
93d8b5fd91SRandall Stewartstructure is used to control various SCTP features
94d8b5fd91SRandall Stewartand has the following format:
95d8b5fd91SRandall Stewart.Bd -literal
96d8b5fd91SRandall Stewartstruct sctp_sndrcvinfo {
97*3d36ac98SRebecca Cran	uint16_t sinfo_stream;  /* Stream sending to */
98*3d36ac98SRebecca Cran	uint16_t sinfo_ssn;     /* valid for recv only */
99*3d36ac98SRebecca Cran	uint16_t sinfo_flags;   /* flags to control sending */
100*3d36ac98SRebecca Cran	uint32_t sinfo_ppid;    /* ppid field */
101*3d36ac98SRebecca Cran	uint32_t sinfo_context; /* context field */
102*3d36ac98SRebecca Cran	uint32_t sinfo_timetolive; /* timetolive for PR-SCTP */
103*3d36ac98SRebecca Cran	uint32_t sinfo_tsn;        /* valid for recv only */
104*3d36ac98SRebecca Cran	uint32_t sinfo_cumtsn;     /* valid for recv only */
105d8b5fd91SRandall Stewart	sctp_assoc_t sinfo_assoc_id; /* The association id */
106d8b5fd91SRandall Stewart};
107d8b5fd91SRandall Stewart.Ed
10816c90ceeSChristian Brueffer.Pp
109d8b5fd91SRandall StewartThe
110d8b5fd91SRandall Stewart.Fa sinfo->sinfo_ppid
111d8b5fd91SRandall Stewartargument is an opaque 32 bit value that is passed transparently
112d8b5fd91SRandall Stewartthrough the stack to the peer endpoint. It will be available on
113d8b5fd91SRandall Stewartreception of a message (see
1141743ff6aSDaniel Gerzo.Xr sctp_recvmsg 3 ) .
11516c90ceeSChristian BruefferNote that the stack passes this value without regard to byte
116d8b5fd91SRandall Stewartorder.
117d8b5fd91SRandall Stewart.Pp
118d8b5fd91SRandall StewartThe
119d8b5fd91SRandall Stewart.Fa sinfo->sinfo_flags
120d8b5fd91SRandall Stewartargument may include one or more of the following:
121d8b5fd91SRandall Stewart.Bd -literal
122d8b5fd91SRandall Stewart#define SCTP_EOF 	  0x0100	/* Start a shutdown procedures */
123d8b5fd91SRandall Stewart#define SCTP_ABORT	  0x0200	/* Send an ABORT to peer */
124d8b5fd91SRandall Stewart#define SCTP_UNORDERED 	  0x0400	/* Message is un-ordered */
125d8b5fd91SRandall Stewart#define SCTP_ADDR_OVER	  0x0800	/* Override the primary-address */
126d8b5fd91SRandall Stewart#define SCTP_SENDALL      0x1000	/* Send this on all associations */
127d8b5fd91SRandall Stewart					/* for the endpoint */
128d8b5fd91SRandall Stewart/* The lower byte is an enumeration of PR-SCTP policies */
129d8b5fd91SRandall Stewart#define SCTP_PR_SCTP_TTL  0x0001	/* Time based PR-SCTP */
130d8b5fd91SRandall Stewart#define SCTP_PR_SCTP_BUF  0x0002	/* Buffer based PR-SCTP */
131d8b5fd91SRandall Stewart#define SCTP_PR_SCTP_RTX  0x0003	/* Number of retransmissions based PR-SCTP */
132d8b5fd91SRandall Stewart.Ed
133d8b5fd91SRandall Stewart.Pp
134d8b5fd91SRandall StewartThe flag
135d8b5fd91SRandall Stewart.Dv SCTP_EOF
136d8b5fd91SRandall Stewartis used to instruct the SCTP stack to queue this message
13716c90ceeSChristian Bruefferand then start a graceful shutdown of the association.
13816c90ceeSChristian BruefferAll
139d8b5fd91SRandall Stewartremaining data in queue will be sent after which the association
140d8b5fd91SRandall Stewartwill be shut down.
141d8b5fd91SRandall Stewart.Pp
142d8b5fd91SRandall Stewart.Dv SCTP_ABORT
14316c90ceeSChristian Bruefferis used to immediately terminate an association.
14416c90ceeSChristian BruefferAn abort
145d8b5fd91SRandall Stewartis sent to the peer and the local TCB is destroyed.
146d8b5fd91SRandall Stewart.Pp
147d8b5fd91SRandall Stewart.Dv SCTP_UNORDERED
148d8b5fd91SRandall Stewartis used to specify that the message being sent has no
149d8b5fd91SRandall Stewartspecific order and should be delivered to the peer application
15016c90ceeSChristian Bruefferas soon as possible.
15116c90ceeSChristian BruefferWhen this flag is absent messages
152d8b5fd91SRandall Stewartare delivered in order within the stream they are sent, but without
153d8b5fd91SRandall Stewartrespect to order to peer streams.
154d8b5fd91SRandall Stewart.Pp
155d8b5fd91SRandall StewartThe flag
156d8b5fd91SRandall Stewart.Dv SCTP_ADDR_OVER
15716c90ceeSChristian Bruefferis used to specify that a specific address should be used.
15816c90ceeSChristian BruefferNormally
15916c90ceeSChristian BruefferSCTP will use only one of a multi-homed peers addresses as the primary
16016c90ceeSChristian Bruefferaddress to send to.
16116c90ceeSChristian BruefferBy default, no matter what the
162d8b5fd91SRandall Stewart.Fa to
16316c90ceeSChristian Bruefferargument is, this primary address is used to send data.
16416c90ceeSChristian BruefferBy specifying
165d8b5fd91SRandall Stewartthis flag, the user is asking the stack to ignore the primary address
16616c90ceeSChristian Bruefferand instead use the specified address not only as a lookup mechanism
16716c90ceeSChristian Bruefferto find the association but also as the actual address to send to.
168d8b5fd91SRandall Stewart.Pp
169d8b5fd91SRandall StewartFor a one-to-many type (SOCK_SEQPACKET) socket the flag
170d8b5fd91SRandall Stewart.Dv SCTP_SENDALL
17116c90ceeSChristian Brueffercan be used as a convenient way to make one send call and have
172d8b5fd91SRandall Stewartall associations that are under the socket get a copy of the message.
173d8b5fd91SRandall StewartNote that this mechanism is quite efficent and makes only one actual
174d8b5fd91SRandall Stewartcopy of the data which is shared by all the associations for sending.
175d8b5fd91SRandall Stewart.Pp
17644d9c281SChristian BruefferThe remaining flags are used for the partial reliability extension (RFC3758)
177d8b5fd91SRandall Stewartand will only be effective if the peer endpoint supports this extension.
17816c90ceeSChristian BruefferThis option specifies what local policy the local endpoint should use
17916c90ceeSChristian Bruefferin skipping data.
18016c90ceeSChristian BruefferIf none of these options are set, then data is
181d8b5fd91SRandall Stewartnever skipped over.
182d8b5fd91SRandall Stewart.Pp
183d8b5fd91SRandall Stewart.Dv SCTP_PR_SCTP_TTL
18444d9c281SChristian Bruefferis used to indicate that a time based lifetime is being applied
18516c90ceeSChristian Bruefferto the data.
18616c90ceeSChristian BruefferThe
187d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive
188d8b5fd91SRandall Stewartargument is then a number of milliseconds for which the data is
18916c90ceeSChristian Bruefferattempted to be transmitted.
19016c90ceeSChristian BruefferIf that many milliseconds ellapse
19116c90ceeSChristian Bruefferand the peer has not acknowledged the data, the data will be
19216c90ceeSChristian Bruefferskipped and no longer transmitted.
19316c90ceeSChristian BruefferNote that this policy does
19416c90ceeSChristian Brueffernot even assure that the data will ever be sent.
19516c90ceeSChristian BruefferIn times of a congestion
196d8b5fd91SRandall Stewartwith large amounts of data being queued, the
197d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive
198d8b5fd91SRandall Stewartmay expire before the first transmission is ever made.
199d8b5fd91SRandall Stewart.Pp
200d8b5fd91SRandall StewartThe
201d8b5fd91SRandall Stewart.Dv SCTP_PR_SCTP_BUF
202d8b5fd91SRandall Stewartbased policy transforms the
203d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive
204d8b5fd91SRandall Stewartfield into a total number of bytes allowed on the outbound
20516c90ceeSChristian Brueffersend queue.
20616c90ceeSChristian BruefferIf that number or more bytes are in queue, then
20716c90ceeSChristian Bruefferother buffer-based sends are looked to be removed and
20844d9c281SChristian Bruefferskipped.
20944d9c281SChristian BruefferNote that this policy may also result in the data
210d8b5fd91SRandall Stewartnever being sent if no buffer based sends are in queue and
211d8b5fd91SRandall Stewartthe maximum specified by
212d8b5fd91SRandall Stewart.Fa timetolive
213d8b5fd91SRandall Stewartbytes is in queue.
214d8b5fd91SRandall Stewart.Pp
215d8b5fd91SRandall StewartThe
216d8b5fd91SRandall Stewart.Dv SCTP_PR_SCTP_RTX
217d8b5fd91SRandall Stewartpolicy transforms the
218d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive
21916c90ceeSChristian Bruefferinto a number of retransmissions to allow.
22016c90ceeSChristian BruefferThis policy
221d8b5fd91SRandall Stewartalways assures that at a minimum one send attempt is
22216c90ceeSChristian Brueffermade of the data.
22316c90ceeSChristian BruefferAfter which no more than
224d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive
225d8b5fd91SRandall Stewartretransmissions will be made before the data is skipped.
226d8b5fd91SRandall Stewart.Pp
227d8b5fd91SRandall Stewart.Fa sinfo->sinfo_stream
228d8b5fd91SRandall Stewartis the SCTP stream that you wish to send the
22916c90ceeSChristian Brueffermessage on.
23016c90ceeSChristian BruefferStreams in SCTP are reliable (or partially reliable) flows of ordered
231d8b5fd91SRandall Stewartmessages.
232d8b5fd91SRandall Stewart.Pp
233d8b5fd91SRandall StewartThe
234d8b5fd91SRandall Stewart.Fa sinfo->sinfo_assoc_id
235d8b5fd91SRandall Stewartfield is used to
23644d9c281SChristian Bruefferselect the association to send to on a one-to-many socket.
23716c90ceeSChristian BruefferFor a one-to-one socket, this field is ignored.
238d8b5fd91SRandall Stewart.Pp
23944d9c281SChristian BruefferThe
240d8b5fd91SRandall Stewart.Fa sinfo->sinfo_context
24116c90ceeSChristian Bruefferfield is used only in the event the message cannot be sent.
24216c90ceeSChristian BruefferThis is an opaque
243d8b5fd91SRandall Stewartvalue that the stack retains and will give to the user when a failed send
244d8b5fd91SRandall Stewartis given if that notification is enabled (see
24544d9c281SChristian Brueffer.Xr sctp 4 ) .
24616c90ceeSChristian BruefferNormally a user process can use this value to index some application
247d8b5fd91SRandall Stewartspecific data structure when a send cannot be fulfilled.
248d8b5fd91SRandall Stewart.Pp
249d8b5fd91SRandall StewartThe
250d8b5fd91SRandall Stewart.Fa flags
25116c90ceeSChristian Bruefferargument holds the same meaning and values as those found in
25216c90ceeSChristian Brueffer.Xr sendmsg 2
253d8b5fd91SRandall Stewartbut is generally ignored by SCTP.
254d8b5fd91SRandall Stewart.Pp
255d8b5fd91SRandall StewartThe fields
256d8b5fd91SRandall Stewart.Fa sinfo->sinfo_ssn ,
257d8b5fd91SRandall Stewart.Fa sinfo->sinfo_tsn ,
258d8b5fd91SRandall Stewartand
259d8b5fd91SRandall Stewart.Fa sinfo->sinfo_cumtsn
260d8b5fd91SRandall Stewartare used only when receiving messages and are thus ignored by
261d8b5fd91SRandall Stewart.Fn sctp_send .
262d8b5fd91SRandall StewartThe function
263d8b5fd91SRandall Stewart.Fn sctp_sendx
264d8b5fd91SRandall Stewarthas the same properties as
265d8b5fd91SRandall Stewart.Fn sctp_send
266d8b5fd91SRandall Stewartwith the additional arguments of an array of sockaddr structures
26716c90ceeSChristian Bruefferpassed in.
26816c90ceeSChristian BruefferWith the
269d8b5fd91SRandall Stewart.Fa addrs
270d8b5fd91SRandall Stewartargument being given as an array of addresses to be sent to and
271d8b5fd91SRandall Stewartthe
272d8b5fd91SRandall Stewart.Fa addrcnt
273d8b5fd91SRandall Stewartargument indicating how many socket addresses are in the passed
27416c90ceeSChristian Bruefferin array.
27516c90ceeSChristian BruefferNote that all of the addresses will only be used
27616c90ceeSChristian Bruefferwhen an implicit association is being set up.
27716c90ceeSChristian BruefferThis allows the
27844d9c281SChristian Bruefferuser the equivalent behavior as doing a
279d8b5fd91SRandall Stewart.Fn sctp_connectx
280d8b5fd91SRandall Stewartfollowed by a
281d8b5fd91SRandall Stewart.Fn sctp_send
28216c90ceeSChristian Bruefferto the association.
28316c90ceeSChristian BruefferNote that if the
284d8b5fd91SRandall Stewart.Fa sinfo->sinfo_assoc_id
285d8b5fd91SRandall Stewartfield is 0, then the first address will be used to look up
28616c90ceeSChristian Bruefferthe association in place of the association id.
28716c90ceeSChristian BruefferIf both
28816c90ceeSChristian Bruefferan address and an association id are specified, the association
289d8b5fd91SRandall Stewartid has priority.
290d8b5fd91SRandall Stewart.Sh RETURN VALUES
291d8b5fd91SRandall StewartThe call returns the number of characters sent, or -1
292d8b5fd91SRandall Stewartif an error occurred.
293d8b5fd91SRandall Stewart.Sh ERRORS
294d8b5fd91SRandall StewartThe
295d8b5fd91SRandall Stewart.Fn sctp_send
296d8b5fd91SRandall Stewartsystem call
297a47698f8SChristian Bruefferfails if:
298d8b5fd91SRandall Stewart.Bl -tag -width Er
299d8b5fd91SRandall Stewart.It Bq Er EBADF
300d8b5fd91SRandall StewartAn invalid descriptor was specified.
301d8b5fd91SRandall Stewart.It Bq Er ENOTSOCK
302d8b5fd91SRandall StewartThe argument
303d8b5fd91SRandall Stewart.Fa s
304d8b5fd91SRandall Stewartis not a socket.
305d8b5fd91SRandall Stewart.It Bq Er EFAULT
306d8b5fd91SRandall StewartAn invalid user space address was specified for an argument.
307d8b5fd91SRandall Stewart.It Bq Er EMSGSIZE
308d8b5fd91SRandall StewartThe socket requires that message be sent atomically,
309d8b5fd91SRandall Stewartand the size of the message to be sent made this impossible.
310d8b5fd91SRandall Stewart.It Bq Er EAGAIN
311d8b5fd91SRandall StewartThe socket is marked non-blocking and the requested operation
312d8b5fd91SRandall Stewartwould block.
313d8b5fd91SRandall Stewart.It Bq Er ENOBUFS
314d8b5fd91SRandall StewartThe system was unable to allocate an internal buffer.
315d8b5fd91SRandall StewartThe operation may succeed when buffers become available.
316d8b5fd91SRandall Stewart.It Bq Er ENOBUFS
317d8b5fd91SRandall StewartThe output queue for a network interface was full.
318d8b5fd91SRandall StewartThis generally indicates that the interface has stopped sending,
319d8b5fd91SRandall Stewartbut may be caused by transient congestion.
320d8b5fd91SRandall Stewart.It Bq Er EHOSTUNREACH
321d8b5fd91SRandall StewartThe remote host was unreachable.
3220add3200SRebecca Cran.It Bq Er ENOTCONN
32316c90ceeSChristian BruefferOn a one-to-one style socket no association exists.
324d8b5fd91SRandall Stewart.It Bq Er ECONNRESET
325d8b5fd91SRandall StewartAn abort was received by the stack while the user was
326d8b5fd91SRandall Stewartattempting to send data to the peer.
327d8b5fd91SRandall Stewart.It Bq Er ENOENT
32816c90ceeSChristian BruefferOn a one-to-many style socket no address is specified
329d8b5fd91SRandall Stewartso that the association cannot be located or the
330d8b5fd91SRandall StewartSCTP_ABORT flag was specified on a non-existing association.
331d8b5fd91SRandall Stewart.It Bq Er EPIPE
332d8b5fd91SRandall StewartThe socket is unable to send anymore data
333d8b5fd91SRandall Stewart.Dv ( SBS_CANTSENDMORE
334d8b5fd91SRandall Stewarthas been set on the socket).
335d8b5fd91SRandall StewartThis typically means that the socket
336d8b5fd91SRandall Stewartis not connected and is a one-to-one style socket.
337d8b5fd91SRandall Stewart.El
338d8b5fd91SRandall Stewart.Sh SEE ALSO
339d8b5fd91SRandall Stewart.Xr getsockopt 2 ,
340d8b5fd91SRandall Stewart.Xr recv 2 ,
341d8b5fd91SRandall Stewart.Xr select 2 ,
34216c90ceeSChristian Brueffer.Xr sendmsg 2 ,
343d8b5fd91SRandall Stewart.Xr socket 2 ,
344d8b5fd91SRandall Stewart.Xr write 2
34516c90ceeSChristian Brueffer.Xr sctp_connectx 3 ,
34616c90ceeSChristian Brueffer.Xr sctp_recvmsg 3 ,
34716c90ceeSChristian Brueffer.Xr sctp_sendmsg 3 ,
34816c90ceeSChristian Brueffer.Xr sctp 4
349d8b5fd91SRandall Stewart.Sh BUGS
350d8b5fd91SRandall StewartBecause
351d8b5fd91SRandall Stewart.Fn sctp_send
352d8b5fd91SRandall Stewartmay have multiple associations under one endpoint, a
353d8b5fd91SRandall Stewartselect on write will only work for a one-to-one style
354d8b5fd91SRandall Stewartsocket.
355