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

RWSecureSocketPortal

Module:  Secure Communication Module   Package:  Secure Sockets


RWPortal RWSecureSocketPortal RWSocketPortalBase

Local Index

Members

Header File

#include <rw/secsock/RWSecureSocketPortal.h>

Description

RWSecureSocketPortal is an access point of a reliable byte stream communication channel that utilizes the SSL/TLS protocols for information security. Multiple RWSecureSocketPortals can access the same communication channel. This often happens when using the copy constructor and assignment operator. Unless you specify otherwise during construction, when the last portal into a channel goes out of scope, the communication channel is closed and all.

RWSecureSocketPortals are lightweight objects. In addition, the copy and assign operations do not copy the underlying communication channel, so these operations are inexpensive. As a result, RWSecureSocketPortals can be returned by value and used as data members in objects.

RWSecureSocketPortal provides a secure socket implementation of a portal, implemented using the RWSecureSocket class. No state is added to RWPortal, so you can assign an RWSecureSocketPortal to an RWPortal without loss of data other than the type.

Enum

enum WhoShouldClose { Portal, Application };

Public Constructors

RWSecureSocketPortal();
RWSecureSocketPortal(const RWSockAddrBase& addr,
                     const RWSecureSocketContext& context);
RWSecureSocketPortal(const RWSockAddrBase& addr, 
                     const RWSecureSocketSession& sess, 
                     const RWSecureSocketContext& context);
RWSecureSocketPortal(const RWSecureSocket& socket,
                     WhoShouldClose=Portal);

Public Member Functions

void 
connect(const RWSockAddrBase&, 
        RWSecureSocketContext& context);
void
connect(const RWSockAddrBase&, 
        const RWSecureSocketSession& sess, 
        const RWSecureSocketContext& context);
RWSecureSocketSession
getSession() const;
RWSecureSocket 
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.