
Net::FreeDB2::Connection - FreeDB/CDDB abstract connection class

See Net::FreeDB2.

Net::FreeDB2::Connection is an abstract class to represent connections to FreeDB/CDDB servers.
After a successfull connection,
FreeDB/CDDB queries,
reads etc can be made to obtain/provide information from/to FreeDB/CDDB databases.

Creates a new Net::FreeDB2::Connection object.
By default connect () is called to initiate the connection but see option no_connect.
See the implementation for complements/restrictions.
Options for OPT_HASH_REF may include:
Mandatory option to name the connecting client software.
Mandatory option with the client software version string.
The hostname of the client.
Defaults to &Sys::Hostname::hostname ().
The user of the client.
Defaults to scalar (getpwuid ($>));
The FreeDB/CDDB host.
Defaults to freedb.freedb.org.
The port on the FreeDB/CDDB host.
Proxy host.
Port on the proxy host.
Defaults to 8080.
Proxy user name to use.
Proxy password to use.
Do not call connect () during instanciation.

Set up a connection to the FreeDB/CDDB server after which the methods lscat (),
query (),
read (),
write (),
log (),
motd (),
discid (),
proto (),
sites (),
stat (),
ver (),
update () and whom () may be called.
Issues an lscat command on the FreeDB/CDDB database.
Returns an ARRAY with available categories.
Queries the FreeDB/CDDB database using ENTRY which is a Net::FreeDB2::Entry object.
Returns a Net::FreeDB2::Response::Query object.
Reads an entry from the FreeDB/CDDB database using MATCH which is a Net::FreeDB2::Match object.
Returns a Net::FreeDB2::Response::Read object.
Writes the specified Net::FreeDB2::Entry object to the FreeDB/CDDB database.
TO BE SPECIFIED
Issues an log command on the FreeDB/CDDB database.
TO BE SPECIFIED
Issues an motd command on the FreeDB/CDDB database.
Returns an ARRAY containing the motd lines.
Issues an discid command on the FreeDB/CDDB database using the Net::FreeDB2::Entry object ENTRY.
Returns the discid as calculated by FreeDB/CDDB.
Issues an proto command on the FreeDB/CDDB database.
TO BE SPECIFIED
Issues an sites command on the FreeDB/CDDB database.
Returns a Net::FreeDB2::Response::Sites object.
Issues an stat command on the FreeDB/CDDB database.
TO BE SPECIFIED
Issues a ver command on the FreeDB/CDDB database.
TO BE SPECIFIED
Issues an update command on the FreeDB/CDDB database.
TO BE SPECIFIED
Issues a whom command on the FreeDB/CDDB database.
TO BE SPECIFIED
Set the client host attribute.
VALUE is the value.
Returns the client host attribute.
Set the client user attribute.
VALUE is the value.
Returns the client user attribute.
Set the client name attribute.
VALUE is the value.
Returns the client name attribute.
Set the client version attribute.
VALUE is the value.
Returns the client version attribute.
Returns the client user attribute.
Set the FreeDB/CDDB host attribute.
VALUE is the value.
Returns the FreeDB/CDDB host attribute.
Set the FreeDB/CDDB port attribute.
VALUE is the value.
Returns the FreeDB/CDDB port attribute.
Set the proxy host attribute.
VALUE is the value.
Returns the proxy host attribute.
Set the proxy port attribute.
VALUE is the value.
Returns the proxy port attribute.
Set the proxy user attribute.
VALUE is the value.
Returns the proxy user attribute.
Set the proxy password attribute.
VALUE is the value.
Returns the proxy password attribute.
Set the connection attribute.
VALUE is the value.
Returns the connection attribute.

Generally,
in exceptional situations,
Error::Simple exceptions are thrown.
See the implementations of this abstract class for details.

Net::FreeDB2::Entry, Net::FreeDB2::Match, Net::FreeDB2::Response, Net::FreeDB2::Response::Query and Net::FreeDB2::Response::Read

None known (yet).

First development: September 2002

Vincenzo Zocca <Vincenzo@Zocca.com>

Copyright 2002, Vincenzo Zocca.

This file is part of the Net::FreeDB2 module hierarchy for Perl by Vincenzo Zocca.
The Net::FreeDB2 module hierarchy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
The Net::FreeDB2 module hierarchy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the Net::FreeDB2 module hierarchy; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA