File: sctp_send.3

package info (click to toggle)
lksctp-tools 1.0.11%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,464 kB
  • sloc: ansic: 13,039; sh: 9,885; makefile: 239
file content (48 lines) | stat: -rw-r--r-- 1,436 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.\" (C) Copyright Sridhar Samudrala IBM Corp. 2005.
.\"
.\" Permission is granted to distribute possibly modified copies
.\" of this manual provided the header is included verbatim,
.\" and in case of nontrivial modification author and date
.\" of the modification is added to the header.
.\"
.TH SCTP_SEND 3 2005-10-25 "Linux 2.6" "Linux Programmer's Manual"
.SH NAME
sctp_send \- Send a message from a SCTP socket. 
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
.B #include <sys/socket.h>
.B #include <netinet/sctp.h>
.sp
.BI "int sctp_send(int " sd ", const void * " msg ", size_t " len ,
.BI "                 const struct sctp_sndrcvinfo *" sinfo ",
.BI "                 uint32_t " flags );
.fi
.SH DESCRIPTION
.BR sctp_send
is a wrapper library function that can be used to send a message from a socket
without the use of the CMSG header structures.
.I sd
is the socket descriptor from which the message pointed to by
.I msg
of length
.I len
is sent.
.I sinfo
is a pointer to a sctp_sndrcvinfo structure.  
.I flags
parameter is composed of a bitwise OR of the flags that can be be passed as
the 3rd argument of a standard sendmsg() call.
.SH "RETURN VALUE"
On success,
.BR sctp_sendmsg
returns the number of bytes sent or -1 if an error occurred.
.SH "SEE ALSO"
.BR sctp (7)
.BR sctp_bindx (3),
.BR sctp_recvmsg (3),
.BR sctp_peeloff (3),
.BR sctp_getpaddrs (3),
.BR sctp_getladdrs (3),
.BR sctp_opt_info (3),
.BR sctp_sendmsg (3)