twisted :: internet :: tcp :: Server :: Class Server
[hide private]
[frames] | no frames]

Class Server




Serverside socket-stream connection class.

I am a serverside network connection transport; a socket which came from an accept() on a server.

Instance Methods [hide private]
 
__init__(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.
 
__repr__(self)
A string representation of this connection.
 
startTLS(self, ctx, server=1)
 
getHost(self)
Returns an IPv4Address.
 
getPeer(self)
Returns an IPv4Address.

Inherited from Connection: connectionLost, doRead, getHandle, getTcpKeepAlive, getTcpNoDelay, logPrefix, readConnectionLost, setTcpKeepAlive, setTcpNoDelay, writeSomeData

Inherited from Connection (private): _closeWriteConnection, _startTLS

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

Inherited from abstract.FileDescriptor (private): _postLoseConnection

Inherited from python.log.Logger: __providedBy__

Inherited from persisted.styles.Ephemeral: __getstate__, __setstate__

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

Inherited from _SocketCloser (private): _closeSocket

Class Variables [hide private]

Inherited from Connection: TLS, logstr

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

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

Inherited from _SocketCloser (private): _socketShutdownMethod

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

 
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: Connection.__init__

__repr__(self)
(Representation operator)

 
A string representation of this connection.
Overrides: object.__repr__

startTLS(self, ctx, server=1)

 
Overrides: Connection.startTLS

getHost(self)

 

Returns an IPv4Address.

This indicates the server's address.

getPeer(self)

 

Returns an IPv4Address.

This indicates the client's address.