I was on a look out for some concrete example on Sockets. I found a very good example of a POP and SMTP server written by my friend Pramod Singh. I have used the Logic from his example to Build this Example. Thank You Pramod !! This program is sort of a Peer to Peer Application where there is transfer of files between two peers.
For Example this is the procedure of connection:
Steps Occurring while Uploading File to the Server