Re: How to block on incoming queue?

Federico Montesino Pouzols <[email protected]>
Newsgroups gmane.comp.gnu.ccrtp.devel
Message-ID <20060523174525.GB11475@paraguas>
Hi, I guess isPendingData and isPendingControl are the methods you are
looking for. These methods block waiting for available packets on the
data/control reception socket (you can specify a max. timeout). If you
want to somehow modify the service thread behavior, you can inherit
from RTPSession and redefine the run method in rtp.h.

Also, if there are no packet in the incoming queue, getFirstTimestamp
will return 0.

HTH.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.