Here's my setup: One host that listens on a $hostportin for incomming connections. There can be at most $n connections. When a connection is started between a host and a client the host needs to be able to send and receive information from this client, any previous clients, as well as be avaiable to start new connections with other clients. (Sounds like a HTTP Daemon, doesn't it).
Originally I was using sockets: host listens on $hostportin. Once a connection is started, the host sends a string to the client on that port telling the client which ports to use for sending and receiving, in essence defining two ports for each client to use. If there are, say, 5 clients, that's 10 ports + the original $hostportin, that need to be managed at all time. There has to be a better way than this! Can anyone please suggest some further reading or at least point me in a better direction? Thank you.
In reply to Networking with Perl by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |