Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Socket pool

by puudeli (Pilgrim)
on Feb 17, 2009 at 10:48 UTC ( [id://744351]=note: print w/replies, xml ) Need Help??


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.

--
seek $her, $from, $everywhere if exists $true{love};

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://744351]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-20 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found