Package flumotion :: Package twisted :: Module fdserver :: Class PassableServerConnection
[hide private]

Class PassableServerConnection

source code

           twisted.python.log.Logger --+            
                                       |            
  twisted.persisted.styles.Ephemeral --+            
                                       |            
                              object --+            
                                       |            
twisted.internet.abstract.FileDescriptor --+        
                                           |        
      twisted.internet.tcp._SocketCloser --+        
                                           |        
             twisted.internet.tcp.Connection --+    
                                               |    
                     twisted.internet.tcp.Server --+
                                                   |
                                                  PassableServerConnection

A subclass of tcp.Server that permits passing the FDs used to other processes (by just calling close(2) rather than shutdown(2) on them)

Instance Methods [hide private]
 
__init__(self, sock, protocol, client, server, sessionno)
Initialize me with a socket, a protocol, a descriptor for my peer (a tuple of host, port describing the other end of the connection), an instance of Port, and a session number.
source code
 
_closeSocket(self) source code

Inherited from twisted.internet.tcp.Server: __repr__, getHost, getPeer, startTLS

Inherited from twisted.internet.tcp.Connection: connectionLost, doRead, getHandle, getTcpKeepAlive, getTcpNoDelay, logPrefix, readConnectionLost, setTcpKeepAlive, setTcpNoDelay, writeSomeData

Inherited from twisted.internet.tcp.Connection (private): _closeWriteConnection, _startTLS

Inherited from twisted.internet.abstract.FileDescriptor: doWrite, fileno, loseConnection, loseWriteConnection, pauseProducing, registerProducer, resumeProducing, startReading, startWriting, stopConsuming, stopProducing, stopReading, stopWriting, unregisterProducer, write, writeConnectionLost, writeSequence

Inherited from twisted.internet.abstract.FileDescriptor (private): _postLoseConnection

Inherited from twisted.python.log.Logger: __providedBy__

Inherited from twisted.persisted.styles.Ephemeral: __getstate__, __setstate__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]

Inherited from twisted.internet.tcp.Server: __implemented__, __provides__

Inherited from twisted.internet.tcp.Connection: TLS, logstr

Inherited from twisted.internet.abstract.FileDescriptor: SEND_LIMIT, bufferSize, connected, dataBuffer, disconnected, disconnecting, offset, producer, producerPaused, streamingProducer

Inherited from twisted.internet.abstract.FileDescriptor (private): _writeDisconnected, _writeDisconnecting

Inherited from twisted.internet.tcp._SocketCloser (private): _socketShutdownMethod

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sock, protocol, client, server, sessionno)
(Constructor)

source code 

Initialize me with a socket, a protocol, a descriptor for my peer (a tuple of host, port describing the other end of the connection), an instance of Port, and a session number.

Overrides: object.__init__
(inherited documentation)

_closeSocket(self)

source code 
Overrides: twisted.internet.tcp._SocketCloser._closeSocket