Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWSockAddr


RWSockAddrRWSockAddrBase

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

An 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);

Copy Constructors

RWSockAddr(const RWSockAddr& x);

Public Member Functions

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

Global Operators

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

Assignment Operators

RWSockAddr& 
operator=(const RWSockAddr& x);


Previous fileTop of DocumentContentsIndexNext file

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