Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWSocketPortal


RWPortal RWSocketPortal RWSocket

Module

Networking Tools: Network Communication Classes (net library)

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Data Types

Member Functions

Synopsis

#include <rw/toolpro/sockport.h>
RWPortal portal = RWSocketPortal(RWInetAddr(42, 
                                 "life.roguewave.com")); 

Required Libraries

net, tls (and possibly std)

Description

RWSocketPortal inherits from RWPortal and references RWSocket.

This class provides a socket implementation of a portal, implemented using the RWSocket class. There is no state added to RWPortal. This implies you can assign an RWSocketPortal to an RWPortal with no loss of data (except for the type).

The socket representing RWSocketPortal's communication channel is normally closed when the last portal into the channel is destroyed. It is possible to prevent this by using a special constructor.

Public Constructors

RWSocketPortal();
RWSocketPortal(const RWSockAddrBase&);
RWSocketPortal(const RWSocket& socket, 
               WhoShouldClose=Portal);

Copy Constructors

RWSocketPortal(const RWSocketPortal& x);

Public Member Functions

void 
connect(const RWSockAddrBase)
RWSocket 
socket() const;

Assignment Operators

RWSocketPortal& 
operator=(const RWSocketPortal& x);

Public Enums

enum WhoShouldClose { Portal, Application };


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.