SCTP_SENDV - Online Linux Manual PageSection : 3
Updated : 2018-04-29
Source : Linux 4.16
Note : Linux
Programmer's
Manual"

NAMEsctp_sendv − Send messages from a SCTP socket with an extensible way.

SYNOPSIS#include <sys/types.h> #include <sys/socket.h> #include <netinet/sctp.h> int sctp_sendv(int sd, const struct iovec * iov, int iovcnt, struct sockaddr *addrs, int addrcnt, void * info, socklen_t infolen, unsigned int infotype, int flags);

DESCRIPTIONsctp_sendv provides an extensible way for an application to communicate different send attributes to the SCTP stack when sending a message. There are three types of attributes that can be used to describe a message to be sent. They are struct sctp_sndinfo, struct sctp_prinfo, and struct sctp_authinfo. The following structure, sctp_sendv_spa, is defined to be used when more than one of the above attributes are needed to describe a message to be sent.
   struct sctp_sendv_spa {
     uint32_t sendv_flags;
     struct sctp_sndinfo sendv_sndinfo;
     struct sctp_prinfo sendv_prinfo;
     struct sctp_authinfo sendv_authinfo;
   }; The sendv_flags field holds a bitwise OR of SCTP_SEND_SNDINFO_VALID, SCTP_SEND_PRINFO_VALID, and SCTP_SEND_AUTHINFO_VALID indicating if the sendv_sndinfo/sendv_prinfo/sendv_authinfo fields contain valid information. sd is the socket descriptor. iov is the gather buffer, the data in the buffer is treated as a single user message. iovcnt is the number of elements in iov. addrs is an array of addresses to be used to set up an association or a single address to be used to send the message, and NULL is passed in if the caller neither wants to set up an association nor wants to send the message to a specific address. addrcnt is the number of addresses in the addrs array. info is a pointer to the buffer containing the attribute associated with the message to be sent, and the type is indicated by the info_type parameter. infolen is the length of info, in bytes. infotype identifies the type of the information provided in info ,and the current defined values are as follows: SCTP_SENDV_NOINFO  No information is provided. The parameter info is a NULL pointer, and infolen is 0. SCTP_SENDV_SNDINFO  The parameter info is pointing to a struct sctp_sndinfo. SCTP_SENDV_PRINFO  The parameter info is pointing to a struct sctp_prinfo. SCTP_SENDV_AUTHINFO  The parameter info is pointing to a struct sctp_authinfo. SCTP_SENDV_SPA  The parameter info is pointing to a struct sctp_sendv_spa. flags The same flags as used by the sendmsg() call flags (e.g., MSG_DONTROUTE).

RETURN VALUEOn success, sctp_sendv returns the number of bytes sent or -1 if an error occurred.

SEE ALSOsctp(7) sctp_bindx(3), sctp_connectx(3), sctp_send(3), sctp_recvmsg(3), sctp_recvv(3), sctp_peeloff(3), sctp_getpaddrs(3), sctp_getladdrs(3), sctp_opt_info(3),
0
Johanes Gumabo
Data Size   :   8,345 byte
man-sctp_sendv.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 193,864
Visitor ID   :     :  
Visitor IP   :   3.145.42.140   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.