Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Paradigm

v0.10

logo.gif

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

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:

Installation

Borland Builder 3.0 IDE

  1. Unzip the distribution into the folders it wants.
  2. Start Builder and open the project group (paradigm_1.bpg) in the paradigm directory.
  3. Click build
  4. Open a Windows command console window and switch to the paradigm directory by typing: cd c:\paradigm or to the path you placed it.
  5. Run the server by typing: paradigm

Borland's Free Command Line Compiler

  1. Unzip the distribution into the folders it wants.
  2. Open a Windows command console window and switch to the paradigm directory by typing: cd c:\paradigm or to the path you placed it.
  3. Then type: make and watch it compile.
  4. Run the server by typing: paradigm

Borland Builder 3.0 IDE

  1. Unzip the distribution into the folders it wants.
  2. Start VIDE and open the project file (paradigm_1.vpj) in the paradigm directory.
  3. Click on make
  4. Open a Windows command console window and switch to the paradigm directory by typing: cd c:\paradigm or to the path you placed it.
  5. Run the server by typing: paradigm

License

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

Miscellaneous

Notes on operation

Future

There ain't to many places to go without complicating this.

Contact and Other Information

Author:
Jon A. Lambert
aka Tyche
Email: jlsysinc@alltel.net
Date:
02/15/2003
Version:
0.10

Generated on Mon Mar 29 22:38:40 2004 for Paradigm by doxygen1.2.17