
i
i
“K16304” — 2012/11/19 — 9:15
i
i
i
i
i
i
218
SCTP Application Interface
int msg_flags , msg_len ;
int nr_destinations ;
socklen_t peer_addr_len;
char readbuf [4096];
struct sctp_sndrcvinfo sctp_info ;
memset(&sctp_info , 0, sizeof(sctp_info ));
memset( readbuf , 0, sizeof (readbuf ));
msg_len = SSL_read(assocLinkTable[ assoc_index ]. ssl ,
readbuf ,
sizeof( readbuf ));
switch ( SSL_get_error( assocLinkTable[assoc_index ]. ssl , len ))
{
case SSL_ERROR_NONE :
BIO_ctrl( assocLinkTable[assoc_index ]. bio ,
BIO_CTRL_DGRAM_SCTP_GET_RCVINFO,
sizeof( struct sctp_sndrcvinfo ) , & sctp_info );
printf("read
%d bytes , stream: %d , ssn: %d , ppid : %d , tsn : %d \ n " ,
( int ...