Module: Secure Communication Module Package: Secure Sockets
Does not inherit
Attribute getAttribute() |
getSocket() operator<() |
operator=() operator==() |
RWSecureSocketAttribute() ~RWSecureSocketAttribute() |
#include <rw/secsock/RWSecureSocketAttribute.h>
RWSecureSocketAttribute encapsulates socket conditions.
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.
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 |
RWSecureSocketAttribute();
Constructs a null attribute on the undefined socket.
RWSecureSocketAttribute(const RWSecureSocket& socket, Attribute attribute = sock_attr_nil);
Constructs an attribute for a particular socket.
RWSecureSocketAttribute(const RWSecureSocketAttribute&
second);
Copy constructor.
~RWSecureSocketAttribute();
Destructor.
RWSecureSocketAttribute& operator=(const RWSecureSocketAttribute& second);
Assignment operator.
bool operator==(const RWSecureSocketAttribute& x, const RWSecureSocketAttribute& y);
Returns true if x and *this refer to the same attribute on the same socket.
bool operator<(const RWSecureSocketAttribute& s) const;
Defined to satisfy some C++ compilers. Should never be invoked by application code. Invoking this operator causes an exception to be thrown.
Attribute getAttribute() const;
Returns the attribute with which self is associated. The returned attribute may be a composite of several attributes ORed together.
RWSecureSocket getSocket() const;
Returns the socket with which the attribute is associated.
© 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.