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

Class Client

        Logger --+            
                 |            
    FileDescriptor --+        
                     |        
         Ephemeral --+        
                     |        
            Connection --+    
                         |    
                Connection --+
                             |
    Logger --+               |
             |               |
FileDescriptor --+           |
                 |           |
     Ephemeral --+           |
                 |           |
        Connection --+       |
                     |       |
            BaseClient --+   |
                         |   |
                 TCPClient --+
                             |
                            Client


I am an SSL client.
Method Summary
  __init__(self, host, port, bindAddress, ctxFactory, connector, reactor)
  __getstate__(self)
(inherited from Ephemeral)
  __repr__(self)
(inherited from BaseClient)
  __setstate__(self, state)
(inherited from Ephemeral)
  connectionLost(self, reason)
See abstract.FileDescriptor.connectionLost(). (inherited from Connection)
  createInternetSocket(self)
(internal) create an SSL socket
  doConnect(self)
I connect the socket. (inherited from BaseClient)
  doRead(self)
See tcp.Connection.doRead for details. (inherited from Connection)
  doWrite(self)
Called when data is available for writing. (inherited from Connection)
  failIfNotConnected(self, err)
(inherited from BaseClient)
  fileno(self)
File Descriptor number for select(). (inherited from FileDescriptor)
  getHost(self)
Returns a tuple of ('SSL', hostname, port).
  getPeer(self)
Returns a tuple of ('SSL', hostname, port).
  getPeerCertificate(self)
Return the certificate for the peer. (inherited from Connection)
  getTcpNoDelay(self)
(inherited from Connection)
  log(self, bytes)
(inherited from Logger)
  logPrefix(self)
Return the prefix to log with when I own the logging thread. (inherited from Connection)
  loseConnection(self)
Close the connection at the next available opportunity. (inherited from FileDescriptor)
  pauseProducing(self)
(inherited from FileDescriptor)
  registerProducer(self, producer, streaming)
Register to receive data from a producer. (inherited from FileDescriptor)
  resolveAddress(self)
(inherited from BaseClient)
  resumeProducing(self)
(inherited from FileDescriptor)
  setTcpNoDelay(self, enabled)
(inherited from Connection)
  startReading(self)
Start waiting for read availability. (inherited from FileDescriptor)
  startWriting(self)
Start waiting for write availability. (inherited from FileDescriptor)
  stopConnecting(self)
Stop attempt to connect. (inherited from BaseClient)
  stopConsuming(self)
Stop consuming data. (inherited from FileDescriptor)
  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)
See tcp.Connection.writeSomeData for details. (inherited from Connection)
  _closeSocket(self)
Called to close our socket. (inherited from Connection)
  _finishInit(self, whenDone, skt, error, reactor)
Called by base classes to continue to next stage of initialization. (inherited from BaseClient)
  _Logger__prefix(self)
(inherited from Logger)
  _postLoseConnection(self)
Gets called after loseConnection(), after buffered data is sent. (inherited from Connection)
  _setRealAddress(self, address)
(inherited from BaseClient)

Method Details

createInternetSocket(self)

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

getHost(self)

Returns a tuple of ('SSL', hostname, port).

This indicates the address from which I am connecting.
Overrides:
twisted.internet.tcp.BaseClient.getHost

getPeer(self)

Returns a tuple of ('SSL', hostname, port).

This indicates the address that I am connected to. I implement twisted.protocols.protocol.Transport.
Overrides:
twisted.internet.tcp.BaseClient.getPeer

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