Skip to Main Content
Multihomed Communication with SCTP (Stream Control Transmission Protocol)
book

Multihomed Communication with SCTP (Stream Control Transmission Protocol)

by Victor C.M. Leung, Eduardo Parente Ribeiro, Alan Wagner, Janardhan Iyengar
December 2012
Intermediate to advanced content levelIntermediate to advanced
241 pages
7h 14m
English
CRC Press
Content preview from Multihomed Communication with SCTP (Stream Control Transmission Protocol)
i
i
“K16304” 2012/11/19 9:15
i
i
i
i
i
i
8.4 Message-Based Communication
203
void test_handle_sctp_msg_UDP ( int fd , short int revents , short int gotEvents ,
void dummy )
{
int msg_flags ,msg_len , addr_length;
int nr_destinations;
socklen_t peer_addr_len;
char readbuf [4096];
memset( readbuf , 0, sizeof (readbuf ));
msg_len = recvfrom (assocLinkTable[ assoc_index ]. sctpInstance ,
readbuf ,
sizeof(readbuf ) ,
&msg_flags ,
( struct sockaddr )
&assocLinkTable[ i_assoc_idx ]. destIpAddr [0] ,
addr_length
);
test_DistributeMsg_simple ( Readbuf ,
msglen
);
}
Figure 8.10 Simple SCTP UDP-like data receive.
Normal 2 way datagram association
TCP applications which employ application layer framing can convert to the normal
model of an SCTP message-based association.
This ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Local Networks and the Internet: From Protocols to Interconnection

Local Networks and the Internet: From Protocols to Interconnection

Laurent Toutain, Ana Minaburo
Network Functions Virtualization (NFV) with a Touch of SDN

Network Functions Virtualization (NFV) with a Touch of SDN

Rajendra Chayapathi, Syed Farrukh Hassan, Paresh Shah
LTE Advanced Pro

LTE Advanced Pro

Frédéric Launay, André Perez

Publisher Resources

ISBN: 9781466566996