RealSocket class: wrapper class around the real socket.