Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWSockType



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

RWSockType represents a type of socket communications channel. It has three components: the family, the type, and the protocol. You cannot construct a valid RWSockType directly. Instead, derived classes, such as RWInetType, can be constructed and assigned to an RWSockType.

An RWSockType represents a type of socket communications, but without an address attached to it. It is made up of a family (sometimes called a domain), a socket type, and a protocol. An example of a family is the Internet TCP/IP family. A socket type is stream or datagram. A protocol could be TCP or UDP.

Public Constructors

RWSockType();

Protected Constructors

RWSockType(const RWCString& familyName, int domain,
           int type=SOCK_STREAM, int protocol=0);

Copy Constructors

RWSockType(const RWSockType& x);

Public Member Functions

int 
domain() const {return family_;} 
int 
family() const {return family_;}
RWCString 
familyName() const {return familyName_;}
RWCString 
id(unsigned level=0);
int 
protocol() const {return protocol_;}
int 
type() const {return type_;}

Public Member Operators

RWBoolean 
operator==(const RWSockType&) const;
RWBoolean 
operator!=(const RWSockType&) const;


Previous fileTop of DocumentContentsIndexNext file

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