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

RWSockAddr

Module:  Essential Networking Module   Package:  Networking


RWSockAddrRWSockAddrBase

Local Index

Members

Non-Members

Header File

#include <rw/network/RWSockAddr.h>

Description

RWSockAddr is a proxy to a socket address of a type that is not known until runtime. The RWSockAddr keeps a handle to a reference-counted RWSockAddrBase object, which is the real address. The RWSockAddr passes requests on to this object.

Public Constructors

RWSockAddr();
RWSockAddr(sockaddr *addr, int len);
RWSockAddr(sockaddr *addr, int len, int type);
RWSockAddr(const RWCString& str);
RWSockAddr(RWSockAddrBase* addr);

Public Member Functions

virtual RWSockType 
addressType() const;
virtual sockaddr* 
asSockaddr() const;
RWCString 
id(unsigned level=0) const;
bool
isValid() const;
virtual void 
prepare() const;
virtual size_t 
sockaddrSize() const;

Global Operators

istream 
operator>>(istream&, RWSockAddr&);
ostream 
operator<<(ostream&, RWSockAddr&);

Global Template Functions

Addr
as<Addr>(const RWSockAddr& addr);
bool
is<Addr>(const RWSockAddr& addr);


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.