There is at least one good reference that covers writing servers that manage multiple simultaneous socket connections: Lincoln Stein's excellent
Network Programing with Perl. If you are going to spend any appreciable amount of time writing socket clients or servers, this book is an invaluable reference.