Further work on Socket classes. Implemented TcpSocket and UnixSocket.