Perl modules for communications

This is a collection of Perl modules for network communication. You can fetch the whole collection in gzipped tar archive form as

    Wire.tar.gz    17 Sep 1999  12174 bytes
Alternatively the Perl files which make up the archive are available individually below.

You may use this code as you wish, if duly attributed, but to avoid confusion it is suggested that if you alter or add to the calling sequences in any module, you also vary the package name.

These modules have only been tested on a very limited variety of Unix systems. You will need to change #! and @INC paths in some cases. Please email me any feedback or suggestions for improvements.

Valparams

Valparams is a small Perl 5 module providing function valparams, which checks that the keywords supplied as arguments to the calling routine are among a specified valid set. It is used by several of the other modules below.
    Valparams.pm   V1.0     14 Nov 1994   1021 bytes

Wire

This module is similar in aim to Randal L. Schwartz's chat2.pl: it provides access to TCP and UDP ports. However the calling sequences are ``the other way up'': you call Wire subroutines when you want them, and manipulate the buffers they provide with your own code, whereas with chat2::expect you provide code fragments which it runs for you.

Wire also attempts to handle errors and timeouts gracefully, returning a message to the caller by return status and/or calling a user-supplied callback routine.

    Wire.pm        V7.0     27 Aug 1999  16334 bytes

WireSyslog

This module uses Wire's output capability to a UDP port to provide a concise implementation of a Perl function analogous to syslog(3) for logging messages through the syslogd daemon.
    WireSyslog.pm  V1.2     20 Mar 1995   3365 bytes

WireRFC931

This module defines a remote_user routine for attempting to determine the username at the other end of a socket, using the RFC931 protocol.
    WireRFC931.pm  V3.0      2 Mar 1998   3539 bytes

WireHarken

WireHarken extends Wire to allow listening on a port and accepting connections.
    WireHarken.pm  V3.1     24 Dec 1997   4001 bytes

haul

This small program for fetching an http URL gives a simple example of how to use the Wire module.
    haul           V2.2     18 Nov 1998   4752 bytes


JSR, Sydney Mathematics and Statistics, 13 Jan 1995 (modified 7 Mar 1995) . . . SMSsearch