Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sctp_opt_info(3) [centos man page]

SCTP_OPT_INFO(3)					     Linux Programmer's Manual						  SCTP_OPT_INFO(3)

sctp_optinfo - Get options on a SCTP socket. SYNOPSIS
#include <sys/types.h> #include <sys/socket.h> #include <netinet/sctp.h> int sctp_opt_info(int sd, sctp_assoc_t id, int opt, void * arg, socklen_t * size); DESCRIPTION
sctp_opt_info is a wrapper library function that can be used to get SCTP level options on a socket. sd is the socket descriptor for which the option is requested. For one-to-many style sockets, id specifies the association to query. For one-to-one style sockets, id is ignored. opt specifes the SCTP socket option to get. arg is an option-specific structure buffer provided by the caller. size is a value-result parameter, initially containing the size of the buffer pointed to by arg and modifed on return to indicate the actual size of the value returned. RETURN VALUE
On success, sctp_opt_info returns 0 and on failure -1 is returned with errno set to the appropriate error code. SEE ALSO
sctp(7) sctp_bindx(3), sctp_connectx(3), sctp_sendmsg(3), sctp_send(3), sctp_recvmsg(3), sctp_peeloff(3), sctp_getpaddrs(3), sctp_getlad- drs(3), Linux 2.6 2004-01-30 SCTP_OPT_INFO(3)

Check Out this Related Man Page

SCTP_RECVMSG(3) 					     Linux Programmer's Manual						   SCTP_RECVMSG(3)

sctp_recvmsg - Receive a message from a SCTP socket. SYNOPSIS
#include <sys/types.h> #include <sys/socket.h> #include <netinet/sctp.h> int sctp_recvmsg(int sd, void * msg, size_t len, struct sockaddr * from, socklen_t * fromlen, struct sctp_sndrcvinfo * sinfo, int * msg_flags); DESCRIPTION
sctp_recvmsg is a wrapper library function that can be used to receive a message from a socket while using the advanced features of SCTP. sd is the socket descriptor on which the message pointed to by msg of length len is received. If from is not NULL, the source address of the message is filled in. The argument fromlen is a value-result parameter. initialized to the size of the buffer associated with from , and modified on return to indicate the actual size of the address stored. sinfo is a pointer to a sctp_sndrcvinfo structure to be filled upon receipt of the message. msg_flags is a pointer to a integer that is filled with any message flags like MSG_NOTIFICATION or MSG_EOR. RETURN VALUE
On success, sctp_recvmsg returns the number of bytes received or -1 if an error occurred. SEE ALSO
sctp(7) sctp_bindx(3), sctp_connectx(3), sctp_sendmsg(3), sctp_send(3), sctp_peeloff(3), sctp_getpaddrs(3), sctp_getladdrs(3), sctp_opt_info(3) Linux 2.6 2005-10-25 SCTP_RECVMSG(3)
Man Page

4 More Discussions You Might Find Interesting

1. Solaris

Multi-homing in SCTP of OpenSolaris10

Hi, I met a problem about multi-homing in SCTP of opensolaris10 system. There is a server and a client communicating with SCTP socket (One-To-One style). For the server, I bind two IP addresses (with different subclass) to the its socket . For the client, two IP addresses are binded to... (0 Replies)
Discussion started by: reallum
0 Replies

2. UNIX for Advanced & Expert Users

connect problem for sctp socket (ipv6 socket) - Runtime fail Invalid Arguments

Hi, I was porting ipv4 application to ipv6; i was done with TCP transports. Now i am facing problem with SCTp transport at runtime. To test SCTP transport I am using following server and client socket programs. Server program runs fine, but client program fails giving Invalid Arguments for... (0 Replies)
Discussion started by: chandrutiptur
0 Replies

3. IP Networking

Puzzle about sctp_bindx in UNP

It writes in Section 9.3 in Unix Network programming about SCTP: "The sctp_bindx call can be used on a bound or unbound socket." And then it writes: "The port number in all the socket address structures must be the same and must match any port number that is already bound; if it doesn't, then... (0 Replies)
Discussion started by: tomdean001
0 Replies

4. Programming

Sctp api name to retrieve the values of structure sctpassoctable

Hi i want a sctp (lksctp) api which can retrieve the values of the sctp structure "sctpAssocTable" It is sctpassoctable or sctpassocentry. SctpAssocEntry ::= SEQUENCE { sctpAssocId Unsigned32, sctpAssocRemHostName OCTET STRING, sctpAssocLocalPort ... (1 Reply)
Discussion started by: harioum
1 Replies