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

Class Server

source code

extern.log.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 extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

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

Inherited from extern.log.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.

Parameters:
  • pemFile - File containing the SSL certificate. If it's a full path, respects the full path. If not, looks in configDir for this file.
  • configDir - directory where .pem file is stored
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.