Added getPureSocket call to socket library for detecting piped/real socket difference.