Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWInetHost


RWInetAddrRWInetHost

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/inetaddr.h>
RWInetHost host("objects.roguewave.com")

Required Libraries

net, tls (and possibly std)

Description

Encapsulates an internet host IP address and its names. You can construct an RWInetHost from either an IP address or a symbolic name.


NOTE: Typically, Winsock implementations do not return a default alias. As a result, an RWInetHost object on a Windows platform will only include alias names if they have been explicitly defined.

Public Constructors

RWInetHost();
RWInetHost(unsigned long IPAddress);
RWInetHost(const RWCString& hostname);
RWInetHost(const char *);

Copy Constructors

RWInetHost(const RWInetHost& x);

Public Member Functions

unsigned long
address() const;
RWTValVector<unsigned long> 
addresses() const;
RWTValVector<RWCString> 
aliases() const;
RWCString 
id(unsigned level=0);
RWCString
name() const;
void 
prepare() const;

Static Member Functions

static RWCString 
addressAsString(unsigned long IPAddress);
static RWInetHost 
me();

Global Operators

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

Assignment Operators

RWInetHost& 
operator=(const RWInetHost& x);


Previous fileTop of DocumentContentsIndexNext file

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