An abstraction layer above regular/TLS sockets