Skip to content
campadrenalin edited this page Sep 22, 2011 · 1 revision

ConcurrenTree.util.server.pool.server

Server

The base class for all servers that work with the Pool. It's mostly an outline skeleton, although it does contain a default "properties" dynamic property that you should override but don't need to unless it's giving you recursion bugs or exposing more internal implementation than you're comfy with.

Methods:
* run() # The function to continuously run in the server thread. Override required.
* starting() # Returns a list of Connections. Override required.
* policy() # Returns a Policy object. Override required.
* close() # Terminates self.run nicely. Override required.

Properties:
* closed # Boolean. Override required.
* properties # Dict. By default it's based on dir(self), minus the "properties" property to prevent unintended recursion.

Serverpool System
Pylib Server

Clone this wiki locally