There are several different Socket APIs for Garry's Mod. They all have slightly different APIs, and for many of them it's unclear if they work at all in Garry's Mod 13.
LuaSocket is 'the original' socket API for Lua. It has a very simple API that closely matches the POSIX sockets API, plus some goodies thrown in (e.g. HTTP layer, MIME type handling).
While LuaSocket doesn't support Garry's Mod, it probably wouldn't be hard to create a Garry's Mod fork of it. This has the advantages of having a high-quality library and universally-recognised API, but it would involve maintenance of a binary module.
Latest version is 2.0.2, released 2007-10-13.
gm_glsock is an asynchronous C++-based socket system for Garry's Mod. Under the hood it uses Boost.Asio. This seems to be the only current socket API for Garry's Mod, as the creator of OOSocks recommends the use of gm_glsock instead.
Latest version is SVN r74, 2012-12-19 (after Garry's Mod 13 was released).
deprecated, not maintained, developer recommends gm_glsock.
Successful port of LuaSocket to Garry's Mod. No longer maintained.
Intended as a more lightweight socket library, gm_litesocket is single-threaded and dead simple. It's currently used by Wire Socket Radios. It claims to work in Garry's Mod 13 but hasn't been updated since 13 was still in beta. Its API closely matches POSIX sockets.
Forum thread last updated 2012-10-20 (before Garry's Mod 13 came out of beta).
https://github.com/danielga/gmod_luasocket