Package flumotion :: Package common :: Module server :: Class Server
[hide private]

Class Server

source code

log.Loggable --+
               |
              Server

Instance Methods [hide private]
 
__init__(self, servable)
I expose a servable to the network using TCP or SSL.
source code
 
startSSL(self, host, port, pemFile, configDir)
Listen as the given host and on the given port using SSL.
source code
 
startTCP(self, host, port)
Listen as the given host and on the given port using normal TCP.
source code

Inherited from log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Class Variables [hide private]
  logCategory = 'server'
Implementors can provide a category to log their messages under.

Inherited from log.Loggable: __implemented__, __provides__

Method Details [hide private]

__init__(self, servable)
(Constructor)

source code 

I expose a servable to the network using TCP or SSL.

Parameters:

startSSL(self, host, port, pemFile, configDir)

source code 

Listen as the given host and on the given port using SSL. Use the given .pem file, or look for it in the config directory.

Returns:
{twisted.internet.interfaces.IListeningPort} on which we are listening; call .stopListening() to stop.

startTCP(self, host, port)

source code 

Listen as the given host and on the given port using normal TCP.

Returns:
{twisted.internet.interfaces.IListeningPort} on which we are listening; call .stopListening() to stop.