Module spiroserver
[show private | hide private]
[frames | no frames]

Module spiroserver

Implements the server side of SPIRO

Run with -h or --help to see options

By default, this script executes under jython
Classes
SpiroCallbackFactory Creates callable proxy objects which send callback messages to the client, and await/return the results
SpiroInterpreter For each client connection, we maintain a private namespace within an InteractiveInterpreter.
SpiroLogger Provides normal and exception logging routines
SpiroServer Server side of SPIRO
SpiroSession Manages a single client session, over a TCP socket connection from the client.
SpiroUnpickler A butchered unpickler which facilitates the passing of object refs between server and client.

Exceptions
ClientError  

Function Summary
  log(level, msg, nPrev)
  logException(level, msg)
  main(argv)
Creates and runs a Spiro server
  myimport(name)
  reprfuncFactory(obj)
Returns a callable which, when invoked, calls 'repr' on obj
  strfuncFactory(obj)
Returns a callable which, when invoked, calls 'str' on obj
  usage(detailed)

Variable Summary
int defaultLogDelay = 0                                                                     
_DevNull defaultLogfile = <epydoc.imports._DevNull instance at 0x...
int defaultLogVerbosity = 5                                                                     
str host = '127.0.0.1'
int port = 9091                                                                  

Function Details

main(argv=None)

Creates and runs a Spiro server

Arguments:
  • a list of argv-style fields

reprfuncFactory(obj)

Returns a callable which, when invoked, calls 'repr' on obj

strfuncFactory(obj)

Returns a callable which, when invoked, calls 'str' on obj

Variable Details

defaultLogDelay

Type:
int
Value:
0                                                                     

defaultLogfile

Type:
_DevNull
Value:
<epydoc.imports._DevNull instance at 0x401f56ec>                       

defaultLogVerbosity

Type:
int
Value:
5                                                                     

host

Type:
str
Value:
'127.0.0.1'                                                            

port

Type:
int
Value:
9091                                                                  

Generated by Epydoc 2.0 on Sun Apr 11 13:37:10 2004 http://epydoc.sf.net