Create PGSocket.cpp

Implementation of the PGSocket.cpp