Package twisted :: Package internet :: Module ssl :: Class Port
[show private | hide private]
[frames | no frames]

Class Port

    Logger --+        
             |        
FileDescriptor --+    
                 |    
              Port --+
                     |
                    Port


I am an SSL port.
Method Summary
  __init__(self, port, factory, ctxFactory, backlog, interface)
  __getstate__(self)
(internal) get my state for persistence (inherited from Port)
  __repr__(self)
(inherited from Port)
  connectionLost(self, reason)
Cleans up my socket. (inherited from Port)
  createInternetSocket(self)
(internal) create an SSL socket
  doRead(self)
Called when my socket is ready for reading.
  doWrite(self)
Raises an AssertionError. (inherited from Port)
  fileno(self)
File Descriptor number for select(). (inherited from FileDescriptor)
  getHost(self)
Returns a tuple of ('INET', hostname, port). (inherited from Port)
  log(self, bytes)
(inherited from Logger)
  logPrefix(self)
Returns the name of my class, to prefix log entries with. (inherited from Port)
  loseConnection(self)
Stop accepting connections on this port. (inherited from Port)
  pauseProducing(self)
(inherited from FileDescriptor)
  registerProducer(self, producer, streaming)
Register to receive data from a producer. (inherited from FileDescriptor)
  resumeProducing(self)
(inherited from FileDescriptor)
  startListening(self)
Create and bind my socket, and begin listening on it. (inherited from Port)
  startReading(self)
Start waiting for read availability. (inherited from FileDescriptor)
  startWriting(self)
Start waiting for write availability. (inherited from FileDescriptor)
  stopConsuming(self)
Stop consuming data. (inherited from FileDescriptor)
  stopListening(self)
Stop accepting connections on this port. (inherited from Port)
  stopProducing(self)
(inherited from FileDescriptor)
  stopReading(self)
Stop waiting for read availability. (inherited from FileDescriptor)
  stopWriting(self)
Stop waiting for write availability. (inherited from FileDescriptor)
  unregisterProducer(self)
Stop consuming data from a producer, without disconnecting. (inherited from FileDescriptor)
  write(self, data)
Reliably write some data. (inherited from FileDescriptor)
  writeSequence(self, iovec)
(inherited from FileDescriptor)
  writeSomeData(self, data)
Write as much as possible of the given data, immediately. (inherited from FileDescriptor)
  _Logger__prefix(self)
(inherited from Logger)
  _postLoseConnection(self)
Called after a loseConnection(), when all data has been written. (inherited from FileDescriptor)

Class Variable Summary
class Server

Method Details

createInternetSocket(self)

(internal) create an SSL socket
Overrides:
twisted.internet.tcp.Port.createInternetSocket

doRead(self)

Called when my socket is ready for reading.

This accepts a connection and callse self.protocol() to handle the wire-level protocol.
Overrides:
twisted.internet.tcp.Port.doRead

Class Variable Details

Server

Server = twisted.internet.ssl.Server

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:15 2003 http://epydoc.sf.net