diff options
author | ivan <ivan> | 2001-04-25 01:06:09 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-04-25 01:06:09 +0000 |
commit | 46f95157da49cd73ef2a58f357fcd802f578ab69 (patch) | |
tree | 60a78e22a3145dec55dd5784535cbc827a447143 /htdocs/docs/man | |
parent | 231db9f6d724c329e5fb45c79931f8248323e588 (diff) |
missing docs
Diffstat (limited to 'htdocs/docs/man')
-rw-r--r-- | htdocs/docs/man/FS/SessionClient.html | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/htdocs/docs/man/FS/SessionClient.html b/htdocs/docs/man/FS/SessionClient.html new file mode 100644 index 0000000..5f180ee --- /dev/null +++ b/htdocs/docs/man/FS/SessionClient.html @@ -0,0 +1,97 @@ +<HTML> +<HEAD> +<TITLE>FS::SessionClient - Freeside session client API</TITLE> +<LINK REV="made" HREF="mailto:perl@packages.debian.org"> +</HEAD> + +<BODY> + +<A NAME="__index__"></A> +<!-- INDEX BEGIN --> + +<UL> + + <LI><A HREF="#name">NAME</A></LI> + <LI><A HREF="#synopsis">SYNOPSIS</A></LI> + <LI><A HREF="#description">DESCRIPTION</A></LI> + <LI><A HREF="#subroutines">SUBROUTINES</A></LI> + <LI><A HREF="#version">VERSION</A></LI> + <LI><A HREF="#bugs">BUGS</A></LI> + <LI><A HREF="#see also">SEE ALSO</A></LI> +</UL> +<!-- INDEX END --> + +<HR> +<P> +<H1><A NAME="name">NAME</A></H1> +<P>FS::SessionClient - Freeside session client API</P> +<P> +<HR> +<H1><A NAME="synopsis">SYNOPSIS</A></H1> +<PRE> + use FS::SessionClient qw( login portnum logout );</PRE> +<PRE> + $error = login ( { + 'username' => $username, + 'password' => $password, + 'login' => $timestamp, + 'portnum' => $portnum, + } );</PRE> +<PRE> + $portnum = portnum( { 'ip' => $ip } ) or die "unknown ip!" + $portnum = portnum( { 'nasnum' => $nasnum, 'nasport' => $nasport } ) + or die "unknown nasnum/nasport";</PRE> +<PRE> + $error = logout ( { + 'username' => $username, + 'password' => $password, + 'logout' => $timestamp, + 'portnum' => $portnum, + } );</PRE> +<P> +<HR> +<H1><A NAME="description">DESCRIPTION</A></H1> +<P>This modules provides an API for a remote session application.</P> +<P>It needs to be run as the freeside user. Because of this, the program which +calls these subroutines should be written very carefully.</P> +<P> +<HR> +<H1><A NAME="subroutines">SUBROUTINES</A></H1> +<DL> +<DT><STRONG><A NAME="item_login">login HASHREF</A></STRONG><BR> +<DD> +HASHREF should have the following keys: username, password, login and portnum. +login is a UNIX timestamp; if not specified, will default to the current time. +Starts a new session for the specified user and portnum. The password is +optional, but must be correct if specified. +<P>Returns a scalar error message, or the empty string for success.</P> +<P></P> +<DT><STRONG><A NAME="item_portnum">portnum</A></STRONG><BR> +<DD> +HASHREF should contain a single key: ip, or the two keys: nasnum and nasport. +Returns a portnum suitable for the login and logout subroutines, or false +on error. +<P></P> +<DT><STRONG><A NAME="item_logout">logout HASHREF</A></STRONG><BR> +<DD> +HASHREF should have the following keys: usrename, password, logout and portnum. +logout is a UNIX timestamp; if not specified, will default to the current time. +Starts a new session for the specified user and portnum. The password is +optional, but must be correct if specified. +<P>Returns a scalar error message, or the empty string for success.</P> +<P></P></DL> +<P> +<HR> +<H1><A NAME="version">VERSION</A></H1> +<P>$Id: SessionClient.html,v 1.1 2001-04-25 01:06:09 ivan Exp $</P> +<P> +<HR> +<H1><A NAME="bugs">BUGS</A></H1> +<P> +<HR> +<H1><A NAME="see also">SEE ALSO</A></H1> +<P><EM>fs_sessiond</EM></P> + +</BODY> + +</HTML> |