The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

VCS::LibCVS::Client::Connection::Pserver - a connection to a cvs pserver

SYNOPSIS

  my $conn = VCS::LibCVS::Client::Connection->new($root);

DESCRIPTION

A connection to cvs process on a remote machine using the pserver protocol. See VCS::LibCVS::Client::Connection for an explanation of the API.

The connection is establised through the network. The default port is the standard pserver port, 2401.

SUPERCLASS

  VCS::LibCVS::Client::Connection

$Admin_Dir_Name scalar string, default "CVS"

The name of the sandbox admin directory.

CLASS ROUTINES

new()

$pserver_connection = VCS::LibCVS::Client::Connection::Ext->new($root)

argument 1 type: VCS::LibCVS::Datum::Root
return type: VCS::LibCVS::Client::Connection::Pserver

Construct a new external CVS connection.

auth_cvspass()

An authentication routine which does pserver logins using the ~/.cvspass file. By default it will search for the necessary password in ~/.cvspass. If the password isn't there (and it's running on a tty) it will prompt for it, and write it to the ~/.cvspass file. This behaviour can be customized by several variables, described below.

This function is loaded into the LibCVS authentication function list, and observes the parameters and return values of those functions. See the documentation for @VCS::LibCVS::Authentication_Functions for more details.

The following configuration parameters are available:

$VCS::LibCVS::Client::Connection::Pserver::Search_CvsPass

Boolean, whether or not to search the ~/.cvspass file.

$VCS::LibCVS::Client::Connection::Pserver::Prompt

Boolean, whether or not to prompt for a password.

$VCS::LibCVS::Client::Connection::Pserver::Store_CvsPass

Boolean, whether or not to write a prompted password to ~/.cvspass. Search_CvsPass and Prompt must also be true for this to happen.

INSTANCE ROUTINES

connect()

$client->connect()

return type: undef

Connect to a CVS repository via a pserver. This opens the connection to the pserver and authenticates, leaving IO::Handles available for talking to the server.

SEE ALSO

  VCS::LibCVS::Client
  VCS::LibCVS::Client::Connection