MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Sockets Library Functions                      sctpsend(3SOCKET)



NAME
     sctpsend - send message from an SCTP socket

SYNOPSIS
     cc [ flag... ] file... -lsocket  -lnsl   -lsctp  [ library... ]
     #include 
     #include 
     #include 

     ssizet sctpsend(int s, const void *msg, sizet *len,
          const struct sctpsndrcvinfo *sinfo, int flags);


DESCRIPTION
     The sctpsend() function sends messages from one-to-one  and
     one-to-many  style  SCTP endpoints. The following parameters
     can be set:

     s      Socket created by socket(3SOCKET)


     msg    Message to be sent


     len    Size of the message to be sent in bytes



     The caller completes the sinfo parameter with values used to
     send a message. Such values might include the stream number,
     payload protocol identifier, time to live, and the SCTP mes-
     sage flag and context. For a one-to-many socket, the associ-
     ation ID can be specified in the sinfo parameter to  send  a
     message to the association represented in the ID.


     Flags supported for sctpsend() are reserved for future use.

RETURN VALUES
     Upon successful completion, the sctpsend() function returns
     the  number  of  bytes  sent.  The function returns -1 if an
     error occurs.

ERORS
     The sctpsend() function fails under  the  following  condi-
     tions.

     EBADF           The s argument is an invalid  file  descrip-
                     tor.






SunOS 5.11          Last change: 19 Mar 2004                    1






Sockets Library Functions                      sctpsend(3SOCKET)



     ENOTSOCK        The s argument is not a socket.


     EOPNOTSUP      MSGABORT  or  MSGEOF   is   set   in   the
                     sinfoflags  field of sinfo for a one-to-one
                     style SCTP socket.


     EPIPE           The socket is  shutting  down  and  no  more
                     writes are allowed.


     EAGAIN          The socket is non-blocking and the  transmit
                     queue is full.


     ENOTCON        There is no established association.


     EINVAL          Control message length is incorrect.


     EINVAL          Specified  destination  address   does   not
                     belong to the association.


     EINVAL          The streamno is outside the number of  out-
                     bound streams supported by the association.


     EAFNOSUPORT    Address family of the specified  destination
                     address is other than AFINET or AFINET6.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Evolving                    
    
     MT-Level                     Safe                        
    


SEE ALSO
     accept(3SOCKET),      bind(3SOCKET),       connect(3SOCKET),
     in.h(3HEAD),         libsctp(3LIB),         listen(3SOCKET),



SunOS 5.11          Last change: 19 Mar 2004                    2






Sockets Library Functions                      sctpsend(3SOCKET)



     sctpsendmsg(3SOCKET),  sendmsg(3SOCKET),   socket(3SOCKET),
     socket.h(3HEAD), sctp(7P)





















































SunOS 5.11          Last change: 19 Mar 2004                    3



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™