Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Networking Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWSocketPortal

Module:  Essential Networking Module   Package:  Networking


RWPortal RWSocketPortal RWSocketPortalBase

Local Index

Members

Header File

#include <rw/network/RWSocketPortal.h>

Description

RWSocketPortal is a socket implementation of a portal, implemented using the RWSocket class. State is not added to RWPortal. This means that you can assign an RWSocketPortal to an RWPortal without loss of data, except for the type.

The RWSocket 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 Enum

enum WhoShouldClose { Portal, Application };

Public Constructors

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

Public Member Functions

void 
connect(const RWSockAddrBase& address);
RWSocket 
getSocket() const;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.