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

RWSocketAttribute

Module:  Essential Networking Module   Package:  Networking


Does not inherit

Local Index

Members

Non-Members

Header File

#include <rw/network/RWSocketAttribute.h>

Description

RWSocketAttribute encapsulates conditions that may be true for a socket. An RWSocketAttribute serves two purposes: it is used to represent a set of attributes on a socket, and it is used to indicate that a particular attribute is true. It consists of two parts: the socket and the attribute.

RWSocketAttribute is used by the global function rwSocketSelect() for asynchronous I/O.

Public Constructors

RWSocketAttribute();
RWSocketAttribute(const RWSocket& socket, 
                 Attribute attribute=NIL);

Public Enums

enum Attribute {
  sock_attr_nil         = 0,  // placebo
  sock_attr_canread     = 1,  // Data available for reading
  sock_attr_canwrite    = 2,  // Data available for writing
  sock_attr_exception   = 4,  // An exception, such as an
                              // error or of band data
  sock_attr_isconnected = 8,  // Connect has completed
  sock_attr_canaccept   = 32, // A new connection is ready 
                              // to be accepted
  sock_attr_any         = ~0  // Interested in any Attribute
};

Public Member Functions

Attribute 
getAttribute() const;
RWSocket 
getSocket() const;

Global Operator

bool 
operator==(const RWSocketAttribute& x, 
           const RWSocketAttribute& y);


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.