4.8
Using RWSecureSocket, RWSecureSocketPortal, and RWSecureSocketListener
RWSecureSocket
,
RWSecureSocketPortal
, and
RWSecureSocketListener
function almost identically to their non-secure counterparts in the Networking package. The difference is that they must be associated with an
RWSecureSocketContext
when they are constructed or initialized.
RWSecureSocket
is a security-enhanced thin wrapper around the Berkeley Sockets API.
RWSecureSocketPortal
is a reference-counted handle-body wrapper of
RWSecureSocket
. It allows pass-by-value semantics with the efficiency of passing by reference. The
RWSecureSocket
underlying an
RWSecureSocketPortal
is automatically closed when no references to it exist.
RWSecureSocketListener
is an alternative to using low-level listening sockets. Once created, every invocation of
operator(addr, context)
returns a newly created
RWSecureSocketPortal
connected to the peer socket.