Add socket.2

I modified what I translated and submited version in 2011-07-26.
And submit to this repo.
Merge pull request #1 from hizukiayaka/master

Add socket.2