fixing use of scope resolution operator in socket.cpp