You will find lots of nodes that will give you the information you need.
In reply to Re: How to use perl sockets? by busunsl in thread How to output from socket connections, please help by Galvatron