Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWSockAddrBase


RWSockAddrBaseRWSockType

Module

Networking Tools: Network Communication Classes (net library)

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Synopsis

#include <rw/toolpro/sockaddr.h>

Required Libraries

net, tls (and possibly std)

Description

The RWSockAddrBase class is an interface class that represents a socket address. All member functions are pure virtual. A specific derived class is RWInetSockAddr defined in its own header file. The class RWSockAddr is a proxy class that provides an interface to an RWSockAddrBase object whose exact type is known.

Public Member Functions

virtual RWSockType 
addressType() const =0;
virtual sockaddr* 
asSockaddr() const =0;
int 
domain() const;
int 
family() const;
RWCString 
familyName() const {return familyName_;}
RWCString 
id(unsigned level=0);
virtual void 
prepare() const;
int 
protocol() const {return protocol_;}
virtual size_t 
sockaddrSize() const =0;
int 
type() const {return type_;}

Conversion Operators

virtual operator const RWCString () const;

Global Operators

ostream& 
operator<<(ostream& strm, const RWSockAddrBase& x);

Global Template Functions

Addr
as<Addr>(const RWSockAddr& addr)
RWBoolean
is<Addr>(const RWSockAddr& addr)


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.