bigmoose has asked for the wisdom of the Perl Monks concerning the following question:
Most glorious Monks,
I started learning Perl 2 or 3 months ago, and my first 'project' is to write some that will capture RTP packets (with Net:Pcap) and eventual decode the resulting payload (with Net::RTP::Packet). All in a VoIP respect.. to be clear.
While planning something on paper, to roughly judge how I will code this, I realised that I wasn't sure how I could have this deal with multiple instances of RTP packets being captured.
For example.. 1 call begins and the script picks this up and begins to output the payload to a file. While this call is occuring a 2nd call begins -...
That's where I can't percieve how the script will react? I imagined looping the capture would be the right thing to do.. but would it begin to capture a 2nd call without the 1st one having finished?
I perhaps feel like I'm not aware of a concept, as Perl is my first programming language.
Thanks for any direction you can give.
Thank you Monks,
Ben
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dealing with multiple processes?
by fisher (Priest) on Aug 05, 2011 at 15:49 UTC | |
by bigmoose (Acolyte) on Aug 05, 2011 at 15:53 UTC | |
|
Re: Dealing with multiple processes?
by Perlbotics (Archbishop) on Aug 05, 2011 at 15:54 UTC | |
|
Re: Dealing with multiple processes?
by locked_user sundialsvc4 (Abbot) on Aug 05, 2011 at 20:26 UTC | |
|
Re: Dealing with multiple processes?
by zentara (Cardinal) on Aug 06, 2011 at 14:33 UTC |