Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I sincerely hope I did not miss the answer to my question in another thread.
I am working on a UDP service to interact with some SIP phones and I am very new to socket programming, and new to Perl.
I have been using IO::Socket::INET to create a socket and respond to incoming messages. I want to ultimately create a forking (or threading, or coroutine-ing) service which immediately spawns on receipt of a request for obvious reasons involving concurrency.
If I pass my socket handle (created by IO::Socket::INET->new()) to the new process/thread/coroutine, will I be able to continue a conversation in the child line of execution whilst receiving new messages in the parent line of execution, or must I build my own system of channels to route messages from the same origin to the correct child line of execution?
Please help me remove my head from where the sun doesn't shine.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Socket programming
by zwon (Abbot) on Aug 08, 2011 at 00:55 UTC | |
Re: Socket programming
by thenaz (Beadle) on Aug 08, 2011 at 03:01 UTC | |
by Anonymous Monk on Aug 08, 2011 at 06:00 UTC | |
by Corion (Patriarch) on Aug 08, 2011 at 06:59 UTC | |
Re: Socket programming
by chubako (Acolyte) on Aug 08, 2011 at 05:10 UTC |