add empty constructor for socket.