Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

13.6 Socket Types

A socket type represents the type of communication channel for which a socket serves as an endpoint. Usually, you don't have to worry about the type, as sensible defaults are always provided by the net library; most net users can skip this section.

There are three components to a socket's type:

13.6.1 Representing a Socket Type

In the net library, a socket address type is represented by an RWSockType object. This is a concrete class: there are no virtual functions, and it has straightforward and efficient copying and assignment semantics. Derived classes are provided for ease of construction of types for each address family. For example, the RWInetType class can be used to construct an RWSockType for the Internet family of classes. Since RWSockType is a concrete class, these derived classes can be converted to instances of RWSockType with no change in the semantics of the object.



Previous fileTop of DocumentContentsIndexNext file

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