RWSocketListener is an abstraction that takes care of many of the details of handling the server side socket. It acts at the Communication Services Layer, much like
RWPortal. It can automatically close the socket on destruction and returns an
RWSocketPortal to the connected client. Assuming that
addr is an
RWSockAddr or a derived address type, the following illustrates how you would accept a connection using
RWSocketListener: