diff options
author | Helmut Grohne <helmut@subdivi.de> | 2007-04-15 18:14:57 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2007-04-15 18:14:57 +0200 |
commit | 0b08dacfcfced7fef1b4818a73c3f43a97fe8c8f (patch) | |
tree | 1841f9a4c97faa3d5df147fdc6ebfe95e9b181e6 /wsgitools/scgi.py | |
parent | d6b64ecb5bfb6d49ca8e97f58e3ad65075810269 (diff) | |
download | wsgitools-0b08dacfcfced7fef1b4818a73c3f43a97fe8c8f.tar.gz |
added docstrings
Diffstat (limited to 'wsgitools/scgi.py')
-rw-r--r-- | wsgitools/scgi.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wsgitools/scgi.py b/wsgitools/scgi.py index 477acf9..c12a296 100644 --- a/wsgitools/scgi.py +++ b/wsgitools/scgi.py @@ -168,7 +168,16 @@ class SCGIConnection(asyncore.dispatcher): __all__.append("SCGIServer") class SCGIServer(asyncore.dispatcher): + """SCGI Server for WSGI applications. It does not use multiple processes or + multiple threads.""" def __init__(self, wsgiapp, port, interface="localhost", error=sys.stderr): + """wsgiapp is the wsgi application to be run. + port is an int representing the TCP port number to be used. + interface is a string specifying the network interface to bind which + defaults to "localhost" making the server inaccessible over + network. + error is a file-like object being passed as wsgi.error in the environ + parameter defaulting to stderr.""" asyncore.dispatcher.__init__(self) self.wsgiapp = wsgiapp self.error = error @@ -185,5 +194,7 @@ class SCGIServer(asyncore.dispatcher): SCGIConnection(self, conn, addr) def run(self): + """Runs the server. It will not return and you can invoke + asyncore.loop() instead achieving the same effect.""" asyncore.loop() |