sctp_sendmsg does not accept flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While sctp_send works well at me, sctp_sendmsg gives me an EINVAL as soon as I pass in some flags. Nonetheless it still sends the message in spite of returning the EINVAL. That looks like an error to me. Please investigate the issue.

while( len > 0 && ( ( ret = sctp_sendmsg( sid, bufp, len, NULL, 0, 0, MSG_NOSIGNAL, (0), 1000, 0 ) ) >= 0 || ( ret==-1 && ( errno == EINTR || errno == ENOBUFS ) ) ) ) { // returns EINVAL if flags are passed if( ret >= 0 ) { bufp += ret; len -= ret; } else if( errno == ENOBUFS ) { struct timespec ts; ts.tv_sec=0; ts.tv_nsec=10000; nanosleep(&ts,NULL); } }
if( ret == -1 ) perror ("error sending request to stream #(0)");

If you should be interested I can send the whole sctp test client program.









[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux