W3C CVS Root

patchPanel/

patchPanel

patchPanel is a little tool for redirecting the output of one netstream to the input of another. It has proven to be very useful in debugging and testing HTTP agents. Below are some instructions for getting it from CVS. Please see the README for more information on obtaining, building, using, and hacking. Send mail to me if you need furthur assistance.

Getting patchPanel from the CVS Repository

CVS allows you to get the lastest version of patchPanel and develop it.

The following requires that you are familiar with CVS - if not then look at Cyclic's pages on CVS or the excellent information provided by Pascal.Molli.


Requirements

Disk space
Checkout and build requires a paltry 250 K.
CVS (version 1.10 or later)
The concurrent version system. Common package names: debian: cvs, redhat: cvs
c++ compiler
I use g++. The version shouldn't matter. debian: g++, redhat: gcc-c++
libc-dev
For those not familiar with compiling C, you need to have dev libraries for libc. debian: libc6-dev, redhat:
readline-dev
debian: libreadline4-dev, redhat: ???
ncurses-dev
readline packages usually require ncurses, but in case of probs, look for debian: libncurses5-dev, redhat: ???

Anonymous CVS Checkout

You can get the source for patchPanel from the W3C CVS server.

Anonymous checkout is read-only access which allows you to get the latest edits and to provide patches to be integrated into the code base. The instructions should work for both Unix and Windows. A couple of notes:

Start by login as follows:

% cvs -d :pserver:anonymous@dev.w3.org:/sources/public login

after which you type "anonymous" as password.

Checkout the Latest Version

To get the latest version from the CVS repository, run this command:

% cvs -d :pserver:anonymous@dev.w3.org:/sources/public -z3 checkout patchPanel

After which you will get all the code coming at you. Now you are ready to Compile.

Checkout a Specific Revision

Check the CVS log walker for the current set of release tags. If you at some point want to revert to the latest untagged version then you should use the following command:

% cd patchPanel
% cvs -z3 update -A

How to Get the Latest Updates

The big advantage of using CVS is that you easily can keep your version of the code base up to date with the latest edits and changes committed to CVS.

Once you have checked out the patchPanel CVS trees (not a specific revision), you can get any updates committed to the tree by using the cvs update command like this

% cd patchPanel
% cvs -z3 update -d
% cd ..

It is important that you use the "-d" flag so that you get new directories as well as updated files. Now you MUST repeat the compilation procedure.

Compiling patchPanel

The Makefile knows how to build patchPanel:

make patchPanel

You can build a version with debugging symbols as well:

make patchPanel.debug

You can use the debugging symbols in debuggers like gdb, which can be launched from the console:

gdb patchPanel.dbg

or from emacs's gdb-mode

M-x gdb
gdb patchPanel.dbg

Eric Prud'hommeaux
$Date: 2004/09/08 19:17:27 $

Copyright  ©  2004 W3C (MIT, INRIA, Keio ), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

Click on a directory to enter that directory. Click on a file to display its revision history and to get a chance to display diffs between revisions.

Current directory: [Public] / patchPanel


File Rev. Age Author Last log entry
[BACK] Parent Directory        
[DIR] Attic/ [show]        
[TXT] Makefile 1.6 15 years eric - Vector.h
[TXT] patchPanel.cpp 1.20 15 years eric ~ switched to std::map
[TXT] README.cvs.html 1.4 19 years eric removed non-template stuff
[TXT] README 1.3 21 years eric more packaing
[TXT] sample.pnl 1.1 21 years eric bit of packaging, lots of terminal control
[TXT] showTTY.cpp 1.1 21 years eric bit of packaging, lots of terminal control
[TXT] .cvsignore 1.2 21 years eric bit of packaging, lots of terminal control
[TXT] patchPanel.html 1.2 24 years eric s/this page intentionally left blank/not even started/
[TXT] Copyright 1.1 24 years eric now with exciting copyright info woo hoo!

General options
,

Webmaster