1SCTP_RECVMSG(3)            Linux Programmer's Manual           SCTP_RECVMSG(3)
2
3
4

NAME

6       sctp_recvmsg - Receive a message from a SCTP socket.
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <sys/socket.h>
11       #include <netinet/sctp.h>
12
13       int sctp_recvmsg(int sd, void * msg, size_t len,
14                        struct sockaddr * from, socklen_t * fromlen,
15                        struct sctp_sndrcvinfo * sinfo, int * msg_flags);
16

DESCRIPTION

18       sctp_recvmsg  is a wrapper library function that can be used to receive
19       a message from a socket while using the advanced features of SCTP.   sd
20       is  the  socket  descriptor  on  which the message pointed to by msg of
21       length len is received.
22
23       If from is not NULL, the source address of the message  is  filled  in.
24       The  argument  fromlen  is a value-result parameter. initialized to the
25       size of the buffer associated with from , and modified on return to in‐
26       dicate the actual size of the address stored.
27
28       sinfo is a pointer to a sctp_sndrcvinfo structure to be filled upon re‐
29       ceipt of the message.  msg_flags is a pointer  to  a  integer  that  is
30       filled  with  any  message flags like MSG_NOTIFICATION or MSG_EOR.  The
31       value of msg_flags pointer should be initialized to 0  to  avoid  unex‐
32       pected  behavior;  msg_flags is also used as an input flags argument to
33       recvmsg function.
34

RETURN VALUE

36       On success, sctp_recvmsg returns the number of bytes received or -1  if
37       an error occurred.
38

SEE ALSO

40       sctp(7)      sctp_bindx(3),      sctp_connectx(3),     sctp_sendmsg(3),
41       sctp_sendv(3),   sctp_send(3),   sctp_peeloff(3),    sctp_getpaddrs(3),
42       sctp_getladdrs(3), sctp_opt_info(3)
43
44
45
46Linux 2.6                         2005-10-25                   SCTP_RECVMSG(3)
Impressum