Added wrappers for IPC reading
Use GetPacketType and GetPacket to safely read from IPC.
Include "Sockets.h" to use these wrappers.