Implement call-with-socket.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>