Lines Matching +full:one +full:- +full:to +full:- +full:one

13 .\"    may be used to endorse or promote products derived from this software
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
62 is used to transmit a message to another SCTP endpoint.
65 function is used to specify multiple peer addresses when creating an implicit
70 function is used to transmit a message whose data is gathered from the
74 may be used to send data to an existing association for both
75 one-to-many (SOCK_SEQPACKET) and one-to-one (SOCK_STREAM) socket types.
80 If the message is too long to pass atomically through the
83 is set to
85 -1 is returned, and
88 No indication of failure to deliver is implicit in a
90 Locally detected errors are indicated by a return value of -1.
92 If no space is available at the socket to hold
93 the message to be transmitted, then
96 non-blocking I/O mode.
99 system call may be used to determine when it is possible to
100 send more data on one-to-one type (SOCK_STREAM) sockets.
104 structure is used to control various SCTP features
106 .Bd -literal
108 uint16_t sinfo_stream; /* Stream sending to */
110 uint16_t sinfo_flags; /* flags to control sending */
113 uint32_t sinfo_timetolive; /* timetolive for PR-SCTP */
121 .Fa sinfo->sinfo_ppid
123 through the stack to the peer endpoint.
126 Note that the stack passes this value without regard to byte
130 .Fa sinfo->sinfo_flags
131 argument may include one or more of the following:
132 .Bd -literal
134 #define SCTP_ABORT 0x0200 /* Send an ABORT to peer */
135 #define SCTP_UNORDERED 0x0400 /* Message is un-ordered */
136 #define SCTP_ADDR_OVER 0x0800 /* Override the primary-address */
139 /* The lower byte is an enumeration of PR-SCTP policies */
140 #define SCTP_PR_SCTP_TTL 0x0001 /* Time based PR-SCTP */
141 #define SCTP_PR_SCTP_BUF 0x0002 /* Buffer based PR-SCTP */
142 #define SCTP_PR_SCTP_RTX 0x0003 /* Number of retransmissions based PR-SCTP */
147 is used to instruct the SCTP stack to queue this message
154 is used to immediately terminate an association.
156 is sent to the peer and the local TCB is destroyed.
159 is used to specify that the message being sent has no
160 specific order and should be delivered to the peer application
164 respect to order to peer streams.
168 is used to specify that a specific address should be used.
170 SCTP will use only one of a multi-homed peers addresses as the primary
171 address to send to.
173 .Fa to
174 argument is, this primary address is used to send data.
176 this flag, the user is asking the stack to ignore the primary address
178 to find the association but also as the actual address to send to.
180 For a one-to-many type (SOCK_SEQPACKET) socket the flag
182 can be used as a convenient way to make one send call and have
184 Note that this mechanism is quite efficient and makes only one actual
195 is used to indicate that a time based lifetime is being applied
198 .Fa sinfo->sinfo_timetolive
200 attempted to be transmitted.
208 .Fa sinfo->sinfo_timetolive
214 .Fa sinfo->sinfo_timetolive
218 other buffer-based sends are looked to be removed and
229 .Fa sinfo->sinfo_timetolive
230 into a number of retransmissions to allow.
232 always assures that at a minimum one send attempt is
235 .Fa sinfo->sinfo_timetolive
238 .Fa sinfo->sinfo_stream
239 is the SCTP stream that you wish to send the
245 .Fa sinfo->sinfo_assoc_id
246 field is used to
247 select the association to send to on a one-to-many socket.
248 For a one-to-one socket, this field is ignored.
251 .Fa sinfo->sinfo_context
254 value that the stack retains and will give to the user when a failed send
257 Normally a user process can use this value to index some application
267 .Fa sinfo->sinfo_ssn ,
268 .Fa sinfo->sinfo_tsn ,
270 .Fa sinfo->sinfo_cumtsn
282 argument being given as an array of addresses to be sent to and
296 .Fa sinfo->sinfo_assoc_id
297 field is 0, then the first address will be used to look up
308 Firstly, the data to be written is passed as an array containing
322 is a pointer to a struct of size
337 points to a
346 .Bd -literal
362 points to a
371 .Bd -literal
384 points to a
393 .Bd -literal
395 uint16_t pr_policy; /* PR-SCTP policy */
396 uint32_t pr_value; /* PR-SCTP Policy option */
402 field should be set to either
418 and pass a pointer to a
425 .Bd -literal
436 member should be set to the bitwise OR of the flags
445 is set to SCTP_SENDV_NOINFO, the
447 argument should be set to zero.
450 should be set to the length of the data structure pointed to by
453 The call returns the number of characters sent, or -1
460 .Bl -tag -width Er
471 and the size of the message to be sent made this impossible.
473 The socket is marked non-blocking and the requested operation
476 The system was unable to allocate an internal buffer.
485 On a one-to-one style socket no association exists.
488 attempting to send data to the peer.
490 On a one-to-many style socket no address is specified
492 SCTP_ABORT flag was specified on a non-existing association.
494 The socket is unable to send anymore data
498 is not connected and is a one-to-one style socket.
530 The functions described in this document conform to RFC 6458.
534 may have multiple associations under one endpoint, a
535 select on write will only work for a one-to-one style