use HyperWave::CSP; $server = HyperWave::CSP->New("my.hyperwave.server"); $server->quit;
HyperWave
is a class implementing a simple HyperWave client in Perl.
HOST
is the name of the remote host to which a HyperWave connection is required.
If not given the environment variables HWHOST
and then HGHOST
are checked, and if a host is not found then localhost
is used.
PORT
is the HyperWave port to connect to, it defaults to the environment
variable HWPORT
, then HGPORT
and then to the standard port 418 if nothing else is found.
USERNAME
and PASSWORD
are the HyperWave username and password, they default to anonymous. ENCRYPT
will eventually allow you to pass the password in in encrypted form rather
than plaintext, but is not yet implemented.
LANGUGAE
also is not yet used, and defaults to the value of the environment variable HWLANGUAGE
and then to English.
The constructor returns the open socket, or undef
if an error has been encountered.
key1=value1\nkey2=value2\n...
.
get_attributes()
except that the attributes are returned
as a hash.
PARENT_OBJNUM
is the object number (probably returned from
get_objnum_by_name()
of the collection to insert this
collection into.
NAME
is the name attribute, this will become the apparent URL to somebody using
the WaveMaster interface.
OTHER_PARAMS
should be in the form
Attribute=AttributeValue\nAttr2=Value2
and so on. You might particularly want to set a Title for the collection.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.