you can look at one of my meditations on chat server....
and for cleaning the sockets, IO::Select provides the select() function that can specify what you want your socket to do....
"keep it simple.... stupid :D"
=====================================================
i'am worst at what do best and for this gift i fell blessed... i found it hard it's hard to find well whatever NEVERMIND