Update src/Socket.cpp

Deleted some old commented out code. You will never use it!
Merge pull request #2 from skkap/master

Some minor refactoring