1 .\" (C) Copyright Sridhar Samudrala IBM Corp. 2004, 2005.
3 .\" Permission is granted to distribute possibly modified copies
4 .\" of this manual provided the header is included verbatim,
5 .\" and in case of nontrivial modification author and date
6 .\" of the modification is added to the header.
8 .TH SCTP_RECVMSG 3 2005-10-25 "Linux 2.6" "Linux Programmer's Manual"
10 sctp_recvmsg \- Receive a message from a SCTP socket.
13 .B #include <sys/types.h>
14 .B #include <sys/socket.h>
15 .B #include <netinet/sctp.h>
17 .BI "int sctp_recvmsg(int " sd ", void * " msg ", size_t " len ,
18 .BI " struct sockaddr * " from ", socklen_t * " fromlen ,
19 .BI " struct sctp_sndrcvinfo * " sinfo ", int * " msg_flags);
23 is a wrapper library function that can be used to receive a message from
24 a socket while using the advanced features of SCTP.
26 is the socket descriptor on which the message pointed to by
34 is not NULL, the source address of the message is filled in. The argument
36 is a value-result parameter. initialized to the size of the buffer associated
39 and modified on return to indicate the actual size of the address stored.
42 is a pointer to a sctp_sndrcvinfo structure to be filled upon receipt of the
45 is a pointer to a integer that is filled with any message flags like
46 .B MSG_NOTIFICATION or
51 returns the number of bytes received or -1 if an error occurred.
55 .BR sctp_connectx (3),
59 .BR sctp_getpaddrs (3),
60 .BR sctp_getladdrs (3),