Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWInetAddr


RWInetAddrRWSockAddrBase

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>
RWInetAddr addr(80, "www.roguewave.com");

Required Libraries

net, tls (and possibly std)

Description

Constructs a complete internet address that includes type information, a host, and a port.

Public Constructors

RWInetAddr();
RWInetAddr(const RWInetPort& port);
RWInetAddr(const RWInetPort& port,
           const RWInetHost& host,
           short type = SOCK_STREAM,
           short protocol = 0);
RWInetAddr(const sockaddr_in& addr,
           short type = SOCK_STREAM,
           short protocol = 0);
RWInetAddr(const RWCString& s);

Copy Constructors

RWInetAddr(const RWInetAddr& x);

Public Member Functions

virtual RWSockType 
addressType() const;
virtual sockaddr* 
asSockaddr() const;
RWInetHost 
host() const;
RWCString 
id(unsigned level=0);
RWInetPort 
port() const;
virtual void 
prepare() const;
virtual size_t 
sockaddrSize() const;

Assignment Operators

RWInetAddr& 
operator=(const RWInetAddr& x);

Static Member Functions

RWBoolean 
is(const RWSockAddrBase& addr); 
RWInetAddr 
as(const RWSockAddrBase& addr); 

Global Operators

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


Previous fileTop of DocumentContentsIndexNext file

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