Add socket.2

I modified what I translated and submited version in 2011-07-26.
And submit to this repo.