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. 12921ca2fdSEd Maste.\" 3. Neither the name of the University nor the names of its contributors 13d8b5fd91SRandall Stewart.\" may be used to endorse or promote products derived from this software 14d8b5fd91SRandall Stewart.\" without specific prior written permission. 15d8b5fd91SRandall Stewart.\" 16d8b5fd91SRandall Stewart.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17d8b5fd91SRandall Stewart.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18d8b5fd91SRandall Stewart.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19d8b5fd91SRandall Stewart.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20d8b5fd91SRandall Stewart.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21d8b5fd91SRandall Stewart.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22d8b5fd91SRandall Stewart.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23d8b5fd91SRandall Stewart.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24d8b5fd91SRandall Stewart.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25d8b5fd91SRandall Stewart.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26d8b5fd91SRandall Stewart.\" SUCH DAMAGE. 27d8b5fd91SRandall Stewart.\" 28d8b5fd91SRandall Stewart.\" $FreeBSD$ 29d8b5fd91SRandall Stewart.\" 30d8b5fd91SRandall Stewart.Dd December 15, 2006 31d8b5fd91SRandall Stewart.Dt SCTP_SEND 3 32d8b5fd91SRandall Stewart.Os 33d8b5fd91SRandall Stewart.Sh NAME 3416c90ceeSChristian Brueffer.Nm sctp_send , 35d8b5fd91SRandall Stewart.Nm sctp_sendx 36d8b5fd91SRandall Stewart.Nd send a message from an SCTP socket 37d8b5fd91SRandall Stewart.Sh LIBRARY 38d8b5fd91SRandall Stewart.Lb libc 39d8b5fd91SRandall Stewart.Sh SYNOPSIS 40d8b5fd91SRandall Stewart.In sys/types.h 41d8b5fd91SRandall Stewart.In sys/socket.h 427c376800SRandall Stewart.In netinet/sctp.h 43d8b5fd91SRandall Stewart.Ft ssize_t 4416c90ceeSChristian Brueffer.Fo sctp_send 4516c90ceeSChristian Brueffer.Fa "int sd" "const void *msg" "size_t len" 4616c90ceeSChristian Brueffer.Fa "const struct sctp_sndrcvinfo *sinfo" "int flags" 4716c90ceeSChristian Brueffer.Fc 48d8b5fd91SRandall Stewart.Ft ssize_t 4916c90ceeSChristian Brueffer.Fo sctp_sendx 5016c90ceeSChristian Brueffer.Fa "int sd" "const void *msg" "size_t len" "struct sockaddr *addrs" 5116c90ceeSChristian Brueffer.Fa "int addrcnt" "const struct sctp_sndrcvinfo *sinfo" "int flags" 5216c90ceeSChristian Brueffer.Fc 53d8b5fd91SRandall Stewart.Sh DESCRIPTION 54d8b5fd91SRandall StewartThe 55d8b5fd91SRandall Stewart.Fn sctp_send 5616c90ceeSChristian Brueffersystem call 57d8b5fd91SRandall Stewartis used to transmit a message to another SCTP endpoint. 58d8b5fd91SRandall Stewart.Fn sctp_send 59d8b5fd91SRandall Stewartmay be used to send data to an existing association for both 60d8b5fd91SRandall Stewartone-to-many (SOCK_SEQPACKET) and one-to-one (SOCK_STREAM) socket types. 61d8b5fd91SRandall StewartThe length of the message 62d8b5fd91SRandall Stewart.Fa msg 63d8b5fd91SRandall Stewartis given by 64d8b5fd91SRandall Stewart.Fa len . 65d8b5fd91SRandall StewartIf the message is too long to pass atomically through the 6616c90ceeSChristian Bruefferunderlying protocol, 6716c90ceeSChristian Brueffer.Va errno 6816c90ceeSChristian Bruefferis set to 6916c90ceeSChristian Brueffer.Er EMSGSIZE , 7016c90ceeSChristian Brueffer-1 is returned, and 71d8b5fd91SRandall Stewartthe message is not transmitted. 72d8b5fd91SRandall Stewart.Pp 73d8b5fd91SRandall StewartNo indication of failure to deliver is implicit in a 7444d9c281SChristian Brueffer.Fn sctp_send . 75d8b5fd91SRandall StewartLocally detected errors are indicated by a return value of -1. 76d8b5fd91SRandall Stewart.Pp 7744d9c281SChristian BruefferIf no space is available at the socket to hold 78d8b5fd91SRandall Stewartthe message to be transmitted, then 79d8b5fd91SRandall Stewart.Fn sctp_send 80d8b5fd91SRandall Stewartnormally blocks, unless the socket has been placed in 81d8b5fd91SRandall Stewartnon-blocking I/O mode. 82d8b5fd91SRandall StewartThe 8316c90ceeSChristian Brueffer.Xr select 2 84d8b5fd91SRandall Stewartsystem call may be used to determine when it is possible to 85d8b5fd91SRandall Stewartsend more data on one-to-one type (SOCK_STREAM) sockets. 86d8b5fd91SRandall Stewart.Pp 87d8b5fd91SRandall StewartThe 88d8b5fd91SRandall Stewart.Fa sinfo 89d8b5fd91SRandall Stewartstructure is used to control various SCTP features 90d8b5fd91SRandall Stewartand has the following format: 91d8b5fd91SRandall Stewart.Bd -literal 92d8b5fd91SRandall Stewartstruct sctp_sndrcvinfo { 933d36ac98SRebecca Cran uint16_t sinfo_stream; /* Stream sending to */ 943d36ac98SRebecca Cran uint16_t sinfo_ssn; /* valid for recv only */ 953d36ac98SRebecca Cran uint16_t sinfo_flags; /* flags to control sending */ 963d36ac98SRebecca Cran uint32_t sinfo_ppid; /* ppid field */ 973d36ac98SRebecca Cran uint32_t sinfo_context; /* context field */ 983d36ac98SRebecca Cran uint32_t sinfo_timetolive; /* timetolive for PR-SCTP */ 993d36ac98SRebecca Cran uint32_t sinfo_tsn; /* valid for recv only */ 1003d36ac98SRebecca Cran uint32_t sinfo_cumtsn; /* valid for recv only */ 101d8b5fd91SRandall Stewart sctp_assoc_t sinfo_assoc_id; /* The association id */ 102d8b5fd91SRandall Stewart}; 103d8b5fd91SRandall Stewart.Ed 10416c90ceeSChristian Brueffer.Pp 105d8b5fd91SRandall StewartThe 106d8b5fd91SRandall Stewart.Fa sinfo->sinfo_ppid 107d8b5fd91SRandall Stewartargument is an opaque 32 bit value that is passed transparently 108d8b5fd91SRandall Stewartthrough the stack to the peer endpoint. It will be available on 109d8b5fd91SRandall Stewartreception of a message (see 1101743ff6aSDaniel Gerzo.Xr sctp_recvmsg 3 ) . 11116c90ceeSChristian BruefferNote that the stack passes this value without regard to byte 112d8b5fd91SRandall Stewartorder. 113d8b5fd91SRandall Stewart.Pp 114d8b5fd91SRandall StewartThe 115d8b5fd91SRandall Stewart.Fa sinfo->sinfo_flags 116d8b5fd91SRandall Stewartargument may include one or more of the following: 117d8b5fd91SRandall Stewart.Bd -literal 118d8b5fd91SRandall Stewart#define SCTP_EOF 0x0100 /* Start a shutdown procedures */ 119d8b5fd91SRandall Stewart#define SCTP_ABORT 0x0200 /* Send an ABORT to peer */ 120d8b5fd91SRandall Stewart#define SCTP_UNORDERED 0x0400 /* Message is un-ordered */ 121d8b5fd91SRandall Stewart#define SCTP_ADDR_OVER 0x0800 /* Override the primary-address */ 122d8b5fd91SRandall Stewart#define SCTP_SENDALL 0x1000 /* Send this on all associations */ 123d8b5fd91SRandall Stewart /* for the endpoint */ 124d8b5fd91SRandall Stewart/* The lower byte is an enumeration of PR-SCTP policies */ 125d8b5fd91SRandall Stewart#define SCTP_PR_SCTP_TTL 0x0001 /* Time based PR-SCTP */ 126d8b5fd91SRandall Stewart#define SCTP_PR_SCTP_BUF 0x0002 /* Buffer based PR-SCTP */ 127d8b5fd91SRandall Stewart#define SCTP_PR_SCTP_RTX 0x0003 /* Number of retransmissions based PR-SCTP */ 128d8b5fd91SRandall Stewart.Ed 129d8b5fd91SRandall Stewart.Pp 130d8b5fd91SRandall StewartThe flag 131d8b5fd91SRandall Stewart.Dv SCTP_EOF 132d8b5fd91SRandall Stewartis used to instruct the SCTP stack to queue this message 13316c90ceeSChristian Bruefferand then start a graceful shutdown of the association. 13416c90ceeSChristian BruefferAll 135d8b5fd91SRandall Stewartremaining data in queue will be sent after which the association 136d8b5fd91SRandall Stewartwill be shut down. 137d8b5fd91SRandall Stewart.Pp 138d8b5fd91SRandall Stewart.Dv SCTP_ABORT 13916c90ceeSChristian Bruefferis used to immediately terminate an association. 14016c90ceeSChristian BruefferAn abort 141d8b5fd91SRandall Stewartis sent to the peer and the local TCB is destroyed. 142d8b5fd91SRandall Stewart.Pp 143d8b5fd91SRandall Stewart.Dv SCTP_UNORDERED 144d8b5fd91SRandall Stewartis used to specify that the message being sent has no 145d8b5fd91SRandall Stewartspecific order and should be delivered to the peer application 14616c90ceeSChristian Bruefferas soon as possible. 14716c90ceeSChristian BruefferWhen this flag is absent messages 148d8b5fd91SRandall Stewartare delivered in order within the stream they are sent, but without 149d8b5fd91SRandall Stewartrespect to order to peer streams. 150d8b5fd91SRandall Stewart.Pp 151d8b5fd91SRandall StewartThe flag 152d8b5fd91SRandall Stewart.Dv SCTP_ADDR_OVER 15316c90ceeSChristian Bruefferis used to specify that a specific address should be used. 15416c90ceeSChristian BruefferNormally 15516c90ceeSChristian BruefferSCTP will use only one of a multi-homed peers addresses as the primary 15616c90ceeSChristian Bruefferaddress to send to. 15716c90ceeSChristian BruefferBy default, no matter what the 158d8b5fd91SRandall Stewart.Fa to 15916c90ceeSChristian Bruefferargument is, this primary address is used to send data. 16016c90ceeSChristian BruefferBy specifying 161d8b5fd91SRandall Stewartthis flag, the user is asking the stack to ignore the primary address 16216c90ceeSChristian Bruefferand instead use the specified address not only as a lookup mechanism 16316c90ceeSChristian Bruefferto find the association but also as the actual address to send to. 164d8b5fd91SRandall Stewart.Pp 165d8b5fd91SRandall StewartFor a one-to-many type (SOCK_SEQPACKET) socket the flag 166d8b5fd91SRandall Stewart.Dv SCTP_SENDALL 16716c90ceeSChristian Brueffercan be used as a convenient way to make one send call and have 168d8b5fd91SRandall Stewartall associations that are under the socket get a copy of the message. 169edfa427cSJoel DahlNote that this mechanism is quite efficient and makes only one actual 170d8b5fd91SRandall Stewartcopy of the data which is shared by all the associations for sending. 171d8b5fd91SRandall Stewart.Pp 17244d9c281SChristian BruefferThe remaining flags are used for the partial reliability extension (RFC3758) 173d8b5fd91SRandall Stewartand will only be effective if the peer endpoint supports this extension. 17416c90ceeSChristian BruefferThis option specifies what local policy the local endpoint should use 17516c90ceeSChristian Bruefferin skipping data. 17616c90ceeSChristian BruefferIf none of these options are set, then data is 177d8b5fd91SRandall Stewartnever skipped over. 178d8b5fd91SRandall Stewart.Pp 179d8b5fd91SRandall Stewart.Dv SCTP_PR_SCTP_TTL 18044d9c281SChristian Bruefferis used to indicate that a time based lifetime is being applied 18116c90ceeSChristian Bruefferto the data. 18216c90ceeSChristian BruefferThe 183d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive 184d8b5fd91SRandall Stewartargument is then a number of milliseconds for which the data is 18516c90ceeSChristian Bruefferattempted to be transmitted. 186c2025a76SJoel DahlIf that many milliseconds elapse 18716c90ceeSChristian Bruefferand the peer has not acknowledged the data, the data will be 18816c90ceeSChristian Bruefferskipped and no longer transmitted. 18916c90ceeSChristian BruefferNote that this policy does 1905512804bSRebecca Crannot even assure that the data will ever be sent. 19116c90ceeSChristian BruefferIn times of a congestion 192d8b5fd91SRandall Stewartwith large amounts of data being queued, the 193d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive 194d8b5fd91SRandall Stewartmay expire before the first transmission is ever made. 195d8b5fd91SRandall Stewart.Pp 196d8b5fd91SRandall StewartThe 197d8b5fd91SRandall Stewart.Dv SCTP_PR_SCTP_BUF 198d8b5fd91SRandall Stewartbased policy transforms the 199d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive 200d8b5fd91SRandall Stewartfield into a total number of bytes allowed on the outbound 20116c90ceeSChristian Brueffersend queue. 20216c90ceeSChristian BruefferIf that number or more bytes are in queue, then 20316c90ceeSChristian Bruefferother buffer-based sends are looked to be removed and 20444d9c281SChristian Bruefferskipped. 20544d9c281SChristian BruefferNote that this policy may also result in the data 206d8b5fd91SRandall Stewartnever being sent if no buffer based sends are in queue and 207d8b5fd91SRandall Stewartthe maximum specified by 208d8b5fd91SRandall Stewart.Fa timetolive 209d8b5fd91SRandall Stewartbytes is in queue. 210d8b5fd91SRandall Stewart.Pp 211d8b5fd91SRandall StewartThe 212d8b5fd91SRandall Stewart.Dv SCTP_PR_SCTP_RTX 213d8b5fd91SRandall Stewartpolicy transforms the 214d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive 21516c90ceeSChristian Bruefferinto a number of retransmissions to allow. 21616c90ceeSChristian BruefferThis policy 2175512804bSRebecca Cranalways assures that at a minimum one send attempt is 21816c90ceeSChristian Brueffermade of the data. 21916c90ceeSChristian BruefferAfter which no more than 220d8b5fd91SRandall Stewart.Fa sinfo->sinfo_timetolive 221d8b5fd91SRandall Stewartretransmissions will be made before the data is skipped. 222d8b5fd91SRandall Stewart.Pp 223d8b5fd91SRandall Stewart.Fa sinfo->sinfo_stream 224d8b5fd91SRandall Stewartis the SCTP stream that you wish to send the 22516c90ceeSChristian Brueffermessage on. 22616c90ceeSChristian BruefferStreams in SCTP are reliable (or partially reliable) flows of ordered 227d8b5fd91SRandall Stewartmessages. 228d8b5fd91SRandall Stewart.Pp 229d8b5fd91SRandall StewartThe 230d8b5fd91SRandall Stewart.Fa sinfo->sinfo_assoc_id 231d8b5fd91SRandall Stewartfield is used to 23244d9c281SChristian Bruefferselect the association to send to on a one-to-many socket. 23316c90ceeSChristian BruefferFor a one-to-one socket, this field is ignored. 234d8b5fd91SRandall Stewart.Pp 23544d9c281SChristian BruefferThe 236d8b5fd91SRandall Stewart.Fa sinfo->sinfo_context 23716c90ceeSChristian Bruefferfield is used only in the event the message cannot be sent. 23816c90ceeSChristian BruefferThis is an opaque 239d8b5fd91SRandall Stewartvalue that the stack retains and will give to the user when a failed send 240d8b5fd91SRandall Stewartis given if that notification is enabled (see 24144d9c281SChristian Brueffer.Xr sctp 4 ) . 24216c90ceeSChristian BruefferNormally a user process can use this value to index some application 243d8b5fd91SRandall Stewartspecific data structure when a send cannot be fulfilled. 244d8b5fd91SRandall Stewart.Pp 245d8b5fd91SRandall StewartThe 246d8b5fd91SRandall Stewart.Fa flags 24716c90ceeSChristian Bruefferargument holds the same meaning and values as those found in 24816c90ceeSChristian Brueffer.Xr sendmsg 2 249d8b5fd91SRandall Stewartbut is generally ignored by SCTP. 250d8b5fd91SRandall Stewart.Pp 251d8b5fd91SRandall StewartThe fields 252d8b5fd91SRandall Stewart.Fa sinfo->sinfo_ssn , 253d8b5fd91SRandall Stewart.Fa sinfo->sinfo_tsn , 254d8b5fd91SRandall Stewartand 255d8b5fd91SRandall Stewart.Fa sinfo->sinfo_cumtsn 256d8b5fd91SRandall Stewartare used only when receiving messages and are thus ignored by 257d8b5fd91SRandall Stewart.Fn sctp_send . 258d8b5fd91SRandall StewartThe function 259d8b5fd91SRandall Stewart.Fn sctp_sendx 260d8b5fd91SRandall Stewarthas the same properties as 261d8b5fd91SRandall Stewart.Fn sctp_send 262d8b5fd91SRandall Stewartwith the additional arguments of an array of sockaddr structures 26316c90ceeSChristian Bruefferpassed in. 26416c90ceeSChristian BruefferWith the 265d8b5fd91SRandall Stewart.Fa addrs 266d8b5fd91SRandall Stewartargument being given as an array of addresses to be sent to and 267d8b5fd91SRandall Stewartthe 268d8b5fd91SRandall Stewart.Fa addrcnt 269d8b5fd91SRandall Stewartargument indicating how many socket addresses are in the passed 27016c90ceeSChristian Bruefferin array. 27116c90ceeSChristian BruefferNote that all of the addresses will only be used 27216c90ceeSChristian Bruefferwhen an implicit association is being set up. 27316c90ceeSChristian BruefferThis allows the 27444d9c281SChristian Bruefferuser the equivalent behavior as doing a 275d8b5fd91SRandall Stewart.Fn sctp_connectx 276d8b5fd91SRandall Stewartfollowed by a 277d8b5fd91SRandall Stewart.Fn sctp_send 27816c90ceeSChristian Bruefferto the association. 27916c90ceeSChristian BruefferNote that if the 280d8b5fd91SRandall Stewart.Fa sinfo->sinfo_assoc_id 281d8b5fd91SRandall Stewartfield is 0, then the first address will be used to look up 28216c90ceeSChristian Bruefferthe association in place of the association id. 28316c90ceeSChristian BruefferIf both 28416c90ceeSChristian Bruefferan address and an association id are specified, the association 285d8b5fd91SRandall Stewartid has priority. 286d8b5fd91SRandall Stewart.Sh RETURN VALUES 287d8b5fd91SRandall StewartThe call returns the number of characters sent, or -1 288d8b5fd91SRandall Stewartif an error occurred. 289d8b5fd91SRandall Stewart.Sh ERRORS 290d8b5fd91SRandall StewartThe 291d8b5fd91SRandall Stewart.Fn sctp_send 292d8b5fd91SRandall Stewartsystem call 293a47698f8SChristian Bruefferfails if: 294d8b5fd91SRandall Stewart.Bl -tag -width Er 295d8b5fd91SRandall Stewart.It Bq Er EBADF 296d8b5fd91SRandall StewartAn invalid descriptor was specified. 297d8b5fd91SRandall Stewart.It Bq Er ENOTSOCK 298d8b5fd91SRandall StewartThe argument 299d8b5fd91SRandall Stewart.Fa s 300d8b5fd91SRandall Stewartis not a socket. 301d8b5fd91SRandall Stewart.It Bq Er EFAULT 302d8b5fd91SRandall StewartAn invalid user space address was specified for an argument. 303d8b5fd91SRandall Stewart.It Bq Er EMSGSIZE 304d8b5fd91SRandall StewartThe socket requires that message be sent atomically, 305d8b5fd91SRandall Stewartand the size of the message to be sent made this impossible. 306d8b5fd91SRandall Stewart.It Bq Er EAGAIN 307d8b5fd91SRandall StewartThe socket is marked non-blocking and the requested operation 308d8b5fd91SRandall Stewartwould block. 309d8b5fd91SRandall Stewart.It Bq Er ENOBUFS 310d8b5fd91SRandall StewartThe system was unable to allocate an internal buffer. 311d8b5fd91SRandall StewartThe operation may succeed when buffers become available. 312d8b5fd91SRandall Stewart.It Bq Er ENOBUFS 313d8b5fd91SRandall StewartThe output queue for a network interface was full. 314d8b5fd91SRandall StewartThis generally indicates that the interface has stopped sending, 315d8b5fd91SRandall Stewartbut may be caused by transient congestion. 316d8b5fd91SRandall Stewart.It Bq Er EHOSTUNREACH 317d8b5fd91SRandall StewartThe remote host was unreachable. 3180add3200SRebecca Cran.It Bq Er ENOTCONN 31916c90ceeSChristian BruefferOn a one-to-one style socket no association exists. 320d8b5fd91SRandall Stewart.It Bq Er ECONNRESET 321d8b5fd91SRandall StewartAn abort was received by the stack while the user was 322d8b5fd91SRandall Stewartattempting to send data to the peer. 323d8b5fd91SRandall Stewart.It Bq Er ENOENT 32416c90ceeSChristian BruefferOn a one-to-many style socket no address is specified 325d8b5fd91SRandall Stewartso that the association cannot be located or the 326d8b5fd91SRandall StewartSCTP_ABORT flag was specified on a non-existing association. 327d8b5fd91SRandall Stewart.It Bq Er EPIPE 328d8b5fd91SRandall StewartThe socket is unable to send anymore data 329d8b5fd91SRandall Stewart.Dv ( SBS_CANTSENDMORE 330d8b5fd91SRandall Stewarthas been set on the socket). 331d8b5fd91SRandall StewartThis typically means that the socket 332d8b5fd91SRandall Stewartis not connected and is a one-to-one style socket. 333d8b5fd91SRandall Stewart.El 334d8b5fd91SRandall Stewart.Sh SEE ALSO 335d8b5fd91SRandall Stewart.Xr getsockopt 2 , 336d8b5fd91SRandall Stewart.Xr recv 2 , 337d8b5fd91SRandall Stewart.Xr select 2 , 33816c90ceeSChristian Brueffer.Xr sendmsg 2 , 339d8b5fd91SRandall Stewart.Xr socket 2 , 340*0aee91e1SChristian Brueffer.Xr write 2 , 34116c90ceeSChristian Brueffer.Xr sctp_connectx 3 , 34216c90ceeSChristian Brueffer.Xr sctp_recvmsg 3 , 34316c90ceeSChristian Brueffer.Xr sctp_sendmsg 3 , 34416c90ceeSChristian Brueffer.Xr sctp 4 345d8b5fd91SRandall Stewart.Sh BUGS 346d8b5fd91SRandall StewartBecause 347d8b5fd91SRandall Stewart.Fn sctp_send 348d8b5fd91SRandall Stewartmay have multiple associations under one endpoint, a 349d8b5fd91SRandall Stewartselect on write will only work for a one-to-one style 350d8b5fd91SRandall Stewartsocket. 351