Closed openluopworld closed 7 years ago
I assume you figured it out?
Yeah, since the function rtp_recvfrom returns an unsigned int. It can not be compared with -1.
unsigned int rtp_recvfrom(rtp_receiver_t receiver, void *msg, int *len);
// line 473 of rtpw.c in version 1.4.4
if (rtp_recvfrom(rcvr, word, &len) > -1) {
Hi, I use srtp 1.4.4 in Ubuntu 14.04. After compiling, I execute the program rtpw with the example in libSRTP 1.4.4 Overview and Reference Manual. It can send data, but nothing can be received. Here are the steps.
Does someone know the reason or do I miss something? Thanks.