Just another Perl shrine | |
PerlMonks |
Re: Socket poolby puudeli (Pilgrim) |
on Feb 17, 2009 at 10:48 UTC ( [id://744351]=note: print w/replies, xml ) | Need Help?? |
Yes you can. Write a function that takes the limit as a parameter and creates an array of hash refs. Each hashref would contain a socket and information whether it is in use or not. Then create functions for getting and freeing a socket from the pool. For interprocess communication see perlipc.
-- seek $her, $from, $everywhere if exists $true{love};
In Section
Seekers of Perl Wisdom
|
|