com.twistedmatrix.util
Interface StreamPairFactory

All Known Implementing Classes:
SSLFactory, TCPFactory

public interface StreamPairFactory

A factory for creating StreamPairs.

A class that implements this interface might, for example, open an encrypted TCP connection.


Method Summary
 StreamPair createConnection()
          Create a new StreamPair.
 

Method Detail

createConnection

public StreamPair createConnection()
Create a new StreamPair.
Returns:
a StreamPair or null if a connection could not be gotten.