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

RWSecureSocketAttribute

Module:  Secure Communication Module   Package:  Secure Sockets


Does not inherit

Local Index

Members

Header File

#include <rw/secsock/RWSecureSocketAttribute.h>

Description

RWSecureSocketAttribute encapsulates socket conditions.

Enum

enum Attribute { 
sock_attr_nil         = 0,
sock_attr_canread     = 1,
sock_attr_canwrite    = 2, 
sock_attr_exception   = 4,
sock_attr_isconnected = 8,
sock_attr_canaccept   = 32, 
sock_attr_any         = ~0 };

These attributes of a socket connection indicate the conditions listed in Table 2. These conditions may be ORed together. For example, the attribute sock_attr_canread|sock_attr_canwrite on a socket indicates that both the attributes are set for the underlying socket.

Table 2: Attribute values 

Value Meaning

sock_attr_nil

No attributes

sock_attr_canread

Data available for reading

sock_attr_canwrite

Data available for writing

sock_attr_exception

Deprecated; avoid

sock_attr_isconnected

Connect operation has completed

sock_attr_canaccept

New connection is ready to be accepted

sock_attr_any

Any attribute

Constructors

RWSecureSocketAttribute();
RWSecureSocketAttribute(const RWSecureSocket& socket,
  Attribute attribute = sock_attr_nil);
RWSecureSocketAttribute(const RWSecureSocketAttribute&
second);

Destructor

~RWSecureSocketAttribute();

Public Operators

RWSecureSocketAttribute&
operator=(const RWSecureSocketAttribute& second);
bool
operator==(const RWSecureSocketAttribute& x,
           const RWSecureSocketAttribute& y);
bool
operator<(const RWSecureSocketAttribute& s) const;

Public Member Functions

Attribute
getAttribute() 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.