Re: multiple RTP session in a single thread

David Sugar <[email protected]>
Newsgroups gmane.comp.gnu.ccrtp.devel
Message-ID <[email protected]>
Actually, ccRTP forms objects that are instances of RTP sessions by 
combining several interlinking classes into a derived object.  The most 
common examples and default top level objects in the library are the 
ones that do have a one to one correspondence, but you do not have to 
build this way.  What you want to look at is how to apply RTPSessionPool:

/**
  * This class is a base class for classes that define a group of RTP
  * sessions that will be served by one or more execution
  * threads. Derived classes are responsible for serving each RTP
  * session with a thread at least.
  *
  * In order to use the RTP session "pool" you just have to build
  * RTPSessionBase objects for each RTP session (instead of RTPSession
  * objects). Then, add the RTPSessionBase objects to an RTP session
  * "pool" and call startRunning() method of the session pool.
  *




Mustafa Kapadia wrote:
> 
> 
> Hi,
> 
>    I am planning to use ccRTP  for developing a test tool which can run 
> multiple RTP session. As I understand after browsing the code is that 
> everytime RTPSession object is created a new Thread is created.Is this 
> correct ?
> 
>  I am planning to run around 2000 RTP session. However, if every 
> RTPSession is a single thread then 2000 threads will starve other 
> processes of CPU. So I am looking for running all these sessions in a 
> single thread using SingleThreadRTPSession. Additionally per session I 
> have a requirement to send/receive packet every 20 ms for each session. 
> Has somebody tried this before ? Is it doable given that I am planning 
> to run this on Win NT machine.
> 
>  Since I am very new to ccRTP I would appreciate if someone can share 
> sample program based on SingleThreadRTPSession for creating multiple RTP 
> sessions  running under one thread.
> 
> Thanks,
> mustak
>   
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ccrtp-devel mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/ccrtp-devel

_______________________________________________
Ccrtp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/ccrtp-devel
dyfet.vcf (text/x-vcard, 198 B)
begin:vcard
fn:David Sugar
n:Sugar;David
org:GNU Telephony
email;internet:[email protected]
tel;work:+1 201 215 2609
x-mozilla-html:FALSE
url:http://www.gnutelephony.org
version:2.1
end:vcard
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.