#!/usr/local/bin/perl # # Copyright (c) 1997-1999 Kevin Johnson . # # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl # itself. # # $Id: xAP.pm,v 1.2 1999/10/03 15:00:19 kjj Exp $ require 5.005; package Net::xAP; use strict; =head1 NAME Net::xAP - A base class for protocols such as IMAP, ACAP, IMSP, and ICAP. =head1 SYNOPSIS C B =head1 DESCRIPTION This base class implements the substrate common across the IMAP, ACAP, IMSP, and ICAP protocols. It provides the interface to the network calls and implements a small amount of glue to assist in implementing interfaces to this protocol family. =cut use IO::Socket; use Carp; use vars qw($VERSION @ISA); $VERSION = '0.02'; use constant ATOM => 0; use constant ASTRING => 1; use constant PARENS => 2; use constant STRING => 3; use constant SASLRESP => 4; use constant QSTRING => 5; =head1 END-PROGRAMMER METHODS The following methods are potentially useful for end-programmers. =head2 last_command_time Return what time the most recent command was sent to the server. The return value is a C