in reply to Socket pool
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.
|
|---|