paradigm_1.zip

Uploaded: 23 Aug, 2006
Previous uploads by this submitter: 0

Author: J. Lambert

Downloads: 73

Introduction
The TCP/IP network progamming examples I've seen generally ignore error detection and handling. Unfortunately this often results in poor quality servers being releasing by those who learn by example. This program features exhaustive error detection and handling. Memory leaks and buffer overruns are also ubiquitous in TCP/IP servers. This example attempts to mitigate those issues. At least that's the hope.

Description
Paradigm in its current state is a very primitive chat server written in C++ for Win32 systems supporting Winsock2. It allows multiple connections and just echoes input to all those connected.

Features
* Proper error detection.
* Dynamic buffers.
* Lots of fuzzy comments using Doxygen QT style notation.

Implementation
A non-blocking select-based server model was selected for this illustration for no particular reason other than usefulness of the example to other BSD derived TCP/IP stack implementations.

There are no actual winsock2 dependencies in this version despite the negotiation present for winsock2. It should work on winsock1 systems by modifiying the WSAStartup negotiation and including the appropriate headers.

System Dependencies
This version was compiled and tested with the following compilers:
* Borland 5.3 (Borland Builder 3.0)
* Borland 5.5.1 (Borland's free commandline compiler)

License
Paradigm was 2003 by Jon A. Lambert - All Rights Reserved.
Paradigm has been released to the public domain by Jon A. Lambert.