source: TI05-delivery/trunk/doc/epydoc/public/delivery.server-module.html @ 1284

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/doc/epydoc/public/delivery.server-module.html@1284
Revision 1284, 7.2 KB checked in by spascoe, 13 years ago (diff)

Documentation update

Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3          "DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6  <title>delivery.server</title>
7  <link rel="stylesheet" href="epydoc.css" type="text/css"></link>
8</head>
9<body bgcolor="white" text="black" link="blue" vlink="#204080"
10      alink="#204080">
11
12<!-- =========== START OF NAVBAR =========== -->
13<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
14  <tr valign="center">
15    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="delivery-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
16    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
17    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
18    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
19    <th class="navbar" align="right" width="100%">
20      <table border="0" cellpadding="0" cellspacing="0">
21      <tr><th class="navbar" align="center">
22        <p class="nomargin">
23          NDG&nbsp;Delivery&nbsp;Service
24      </p></th></tr></table>
25    </th>
26  </tr>
27</table>
28<table width="100%" cellpadding="0" cellspacing="0">
29  <tr valign="top">
30    <td width="100%">
31      <font size="-1"><b class="breadcrumbs">
32        <a href="delivery-module.html">Package&nbsp;delivery</a> ::
33        Module&nbsp;server
34      </b></font></br>
35    </td>
36    <td><table cellpadding="0" cellspacing="0">
37      <tr><td align="right"><font size="-2">[<a href="../private/delivery.server-module.html">show&nbsp;private</a>&nbsp;|&nbsp;hide&nbsp;private]</font></td></tr>
38      <tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a>&nbsp;|&nbsp;<a href="delivery.server-module.html" target="_top">no&nbsp;frames</a>]</font></td></tr>
39    </table></td>
40</tr></table>
41
42<!-- =========== START OF MODULE DESCRIPTION =========== -->
43<h2 class="module">Module delivery.server</h2>
44
45Start a bbftp server process and define python callbacks for authentication and authorisation.
46
47Interface to the BBftp server.
48<hr/>
49<p><b>Author:</b> Stephen Pascoe</p>
50
51<p><b>Copyright:</b> Copyright (C) 2006 CCLRC & NERC
52</p>
53
54<p><b>License:</b> This software may be distributed under the terms of the Q Public Licence, version 1.0 or later.
55</p>
56
57
58<!-- =========== START OF CLASSES =========== -->
59<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
60<tr bgcolor="#70b0f0" class="summary">
61  <th colspan="2">Classes</th></tr>
62<tr><td width="15%">
63  <b><a href="delivery.server.AuthHandler-class.html"><code>AuthHandler</code></a></b></td>
64  <td>Abstract base class for implementing authentication.</td></tr>
65<tr><td width="15%">
66  <b><a href="delivery.server.AuthzHandler-class.html"><code>AuthzHandler</code></a></b></td>
67  <td>Abstract base class for implementing authorisation.</td></tr>
68<tr><td width="15%">
69  <b><a href="delivery.server.LiberalAuthzHandler-class.html"><code>LiberalAuthzHandler</code></a></b></td>
70  <td>Allow everything.</td></tr>
71<tr><td width="15%">
72  <b><a href="delivery.server.MSG-class.html"><code>MSG</code></a></b></td>
73  <td>Static class containing message codes used by bbftp.</td></tr>
74<tr><td width="15%">
75  <b><a href="delivery.server.TROPT-class.html"><code>TROPT</code></a></b></td>
76  <td>Static class containing constants used by bbftp in the transferoption parameter.</td></tr>
77</table><br />
78
79
80<!-- =========== START OF EXCEPTIONS =========== -->
81<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
82<tr bgcolor="#70b0f0" class="summary">
83  <th colspan="2">Exceptions</th></tr>
84<tr><td width="15%">
85  <b><a href="delivery.server.AuthenticationFailure-class.html"><code>AuthenticationFailure</code></a></b></td>
86  <td>Signals authentication failed.</td></tr>
87<tr><td width="15%">
88  <b><a href="delivery.server.AuthorisationFailure-class.html"><code>AuthorisationFailure</code></a></b></td>
89  <td>Signals authorisation failed.</td></tr>
90</table><br />
91
92
93<!-- =========== START OF FUNCTION SUMMARY =========== -->
94<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
95<tr bgcolor="#70b0f0" class="summary">
96  <th colspan="2">Function Summary</th></tr>
97<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
98  <td><code><span class="summary-sig"><a href="delivery.server-module.html#start" class="summary-sig-name"><code>start</code></a>(<span class=summary-sig-arg>authHandler</span>,
99          <span class=summary-sig-arg>args</span>)</span></code>
100<br />
101Start the bbftp server.</td></tr>
102</table><br />
103
104
105<!-- =========== START OF FUNCTION DETAILS =========== -->
106<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
107<tr bgcolor="#70b0f0" class="details">
108  <th colspan="2">Function Details</th></tr>
109</table>
110
111<a name="start"></a>
112<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
113  <h3><span class="sig"><span class="sig-name">start</span>(<span class=sig-arg>authHandler</span>,
114          <span class=sig-arg>args</span>)</span>
115  </h3>
116Start the bbftp server.
117
118The server performs a fork() during initialisation, the child process remains in
119the server's main loop and the parent returns from this function.  The server process
120calls authHandler.authorise() on each connection to do authentication/authorisation.
121  <dl><dt></dt><dd>
122    <dl><dt><b>Parameters:</b></dt>
123      <dd><code><b>authHandler</b></code> -
124 an instance of AuthHandler.
125      <dd><code><b>args</b></code> -
126 a list of command line arguments.
127      </dd>
128    </dl>
129    <dl><dt><b>Returns:</b></dt>
130      <dd>
131the PID of the server process.      </dd>
132    </dl>
133<p><b>Note:</b> because the server process forks, authHandler will not see any changes to the python
134    interpreter following the call to start().
135</p>
136
137  </dd></dl>
138</td></tr></table>
139<br />
140
141
142<!-- =========== START OF NAVBAR =========== -->
143<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
144  <tr valign="center">
145    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="delivery-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
146    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
147    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
148    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
149    <th class="navbar" align="right" width="100%">
150      <table border="0" cellpadding="0" cellspacing="0">
151      <tr><th class="navbar" align="center">
152        <p class="nomargin">
153          NDG&nbsp;Delivery&nbsp;Service
154      </p></th></tr></table>
155    </th>
156  </tr>
157</table>
158
159<table border="0" cellpadding="0" cellspacing="0" width="100%">
160  <tr>
161    <td align="left"><font size="-2">Generated by Epydoc 2.1 on Thu Jul  6 15:44:02 2006</font></td>
162    <td align="right"><a href="http://epydoc.sourceforge.net"
163                      ><font size="-2">http://epydoc.sf.net</font></a></td>
164  </tr>
165</table>
166</body>
167</html>
Note: See TracBrowser for help on using the repository browser.