Add partial implementation of SOCKS socket.