The ultimate socket library for C and C++, supporting TCP, UDP and Unix sockets (DGRAM and STREAM) on Linux, FreeBSD, Solaris. See also my uvco library for a refreshed version!
This can fail to compile in projects where there's a separate string defined in the global namespace rather than std::string (rare, but it happens). It was already defined in the libsocket namespace in other headers, so we unified it to do that everywhere rather than have some headers define it under the namespace and some define it globally.
This can fail to compile in projects where there's a separate string defined in the global namespace rather than std::string (rare, but it happens). It was already defined in the libsocket namespace in other headers, so we unified it to do that everywhere rather than have some headers define it under the namespace and some define it globally.