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
26       indicate the actual size of the address stored.
27
28       sinfo  is  a  pointer  to a sctp_sndrcvinfo structure to be filled upon
29       receipt 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.
31

RETURN VALUE

33       On  success, sctp_recvmsg returns the number of bytes received or -1 if
34       an error occurred.
35

SEE ALSO

37       sctp(7) sctp_bindx(3), sctp_connectx(3), sctp_sendmsg(3), sctp_send(3),
38       sctp_peeloff(3), sctp_getpaddrs(3), sctp_getladdrs(3), sctp_opt_info(3)
39
40
41
42Linux 2.6                         2005-10-25                   SCTP_RECVMSG(3)
Impressum