Package flumotion :: Package component :: Package common :: Package fgdp :: Module protocol :: Class FGDPServer_0_1
[hide private]

Class FGDPServer_0_1

source code

                              object --+    
                                       |    
                                FGDP_0_1 --+
                                           |
twisted.protocols.basic.LineReceiver --+   |
                                       |   |
             extern.log.log.Loggable --+   |
                                       |   |
                        FGDPBaseProtocol --+
                                           |
                                          FGDPServer_0_1

Implementation of the server-side FGDP protocol for version 0.1

Instance Methods [hide private]
 
__init__(self, gstElement)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
makeConnection(self, transport)
Store a reference of the trasport and file descriptor of the used by the new connection
source code
 
startProtocol(self)
Subclasses must implement this method to start the protocol after a new connection has been made
source code
 
stopProtocol(self, reason)
Subclasses must implement this method to stop the protocol after the connection has been closed
source code
 
lineReceived(self, line)
Subclasess must implement this method to process the messages of the line-based protocol
source code
 
_checkState(self, command) source code
 
_handleError(self, error) source code
 
_challengeClient(self) source code
 
_startStreaming(self) source code
 
_checkAuthentication(self, command) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from FGDPBaseProtocol: connectionLost, connectionMade, loseConnection

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

Class Variables [hide private]
  logCategory = 'fgdp-server'
Implementors can provide a category to log their messages under.
  SERVER_STATE_DISCONNECTED = "disconnected"
  SERVER_STATE_AUTHENTICATE = "authenticate"
  SERVER_STATE_CONNECTED = "connected"
  _state = "disconnected"
  _version = 0, 1
  _challenge = ''
  _random = None
hash(x)

Inherited from FGDP_0_1: AUTH_COMMAND, CHALLENGE_RESPONSE, ERROR_RESPONSE, LOGIN_COMMAND, OK_RESPONSE

Inherited from FGDPBaseProtocol (private): _fd, _gstElement, _password, _transport, _user

Inherited from extern.log.log.Loggable: __implemented__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, gstElement)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: FGDPBaseProtocol.__init__

makeConnection(self, transport)

source code 

Store a reference of the trasport and file descriptor of the used by the new connection

Overrides: FGDPBaseProtocol.makeConnection
(inherited documentation)

startProtocol(self)

source code 

Subclasses must implement this method to start the protocol after a new connection has been made

Overrides: FGDPBaseProtocol.startProtocol
(inherited documentation)

stopProtocol(self, reason)

source code 

Subclasses must implement this method to stop the protocol after the connection has been closed

Overrides: FGDPBaseProtocol.stopProtocol
(inherited documentation)

lineReceived(self, line)

source code 

Subclasess must implement this method to process the messages of the line-based protocol

Overrides: FGDPBaseProtocol.lineReceived
(inherited documentation)