Programmer's Guide to the WvStreams Libraries
Net Integration Technologies R & D
Copyright © 2002 Net Integration Technologies, Inc.
Table of Contents
Introduction
I.
The Utilities Library
Introduction
1.
Basic String Handling
String Utilities (strutils.cc)
Version String Manipulation (verstring.cc)
Hexadecimal formating tools (WvHex.cc)
Crypto stuff (strcrypt.cc)
2.
WvString - dynamic character strings
Introduction
WvString Examples
WvStringTable
WvStringList
3.
WvLinkList - type-safe linked lists and iterators
How to create a WvLinkList?
4.
WvHashTable - type-safe hash tables and iterators
How to create a WvHashTable?
5.
WvBuffer - dynamically-resizing binary buffers
WvBufferStore - basic buffer storage class
6.
WvDirIter
7.
WvEncoder - A top-level data encoder class
An encoding tool (WvBase64.cc)
Another encoding tool (WvBackSlash.cc)
8.
WvCrash - automatic stack backtrace generation
II.
The Streams Library
9.
WvStream - communications fundamentals
Basic WvStream Examples
Reading and Writing
Waiting on a stream with select()
Callback Functions
Delays and Timeouts
10.
Some Simple Streams
WvFile - accessing Unix files
WvFileWatcher - waiting for a file to change
WvPipe - talking to subtasks
WvModem - baud rates and terminal modes
11.
Dealing with Log Messages
WvLog - printing log messages
WvLogRcv - receiving and disposing of log messages
WvLogBuffer - saving log messages to a buffer
WvLogFile - sending log messages to a file
WvSyslog - sending log messages to syslog
An example of WvPipe and WvLog together
12.
WvStreamList - dealing with multiple streams
Don't do this
Do this instead
An Interesting Example
13.
Some Magical Streams
WvStreamClone - a stream within a stream
WvSplitStream - separating read and write streams
WvLoopback - talking to yourself across fork()
14.
Some Unusual Streams
WvTimeStream - timed events
WvTimeOutStream - timed out
WvProtoStream - a protocol state machine
15.
The Magic of WvCallBack
WvCallback - What does it do?
WvCallback - How to create your own WvCallback?
III.
The IPStreams (TCP/IP sockets interface) Library
16.
Support Classes
WvAddr - storing an arbitrary network address
WvResolver - Background DNS name resolution
17.
Interfacing to Linux Kernel Features
WvInterface - manipulating network interfaces
WvIPRoute - manipulating the routing table
WvIPFirewall - basic ipchains firewall interface
WvIPAliaser - using Linux IP aliasing
WvTunDev - using Linux tunnel devices
WvDcp -
18.
WvUDP - using udp datagrams
19.
WvUDP2 - logically separate udp datagram connections
20.
WvTCP - using tcp streams
21.
WvHTTP - HTTP URL downloader
22.
WvURL
23.
WvUnixConn
IV.
The ConfigFile (.ini manager) Library
24.
Configuration Entries
25.
Configuration Sections
26.
Configuration Files
V.
Network Mapping and Intelligence - the NetMap Library
27.
WvNetCap - network packet capture
28.
WvNetMap - raw host information
29.
WvNetIntelligence - network map reduction
30.
WvPingProbe - active probing
31.
WvNetGuide - route manipulation and overrides
Next
Introduction