[Twisted-Python] Could I serve normal TCP and TLS services on the same port?
itamar at itamarst.org
Tue Jun 14 09:46:57 EDT 2005
On Tue, 2005-06-14 at 13:57 +0800, Eric Hsu wrote:
> Does twisted already have support(libs, classes, api...) for "turning
> TLS on within a normal TCP connection"? Is there any sample code or
> tutorial I could learn from, or could you please point me to somewhere
> I could find more information?
Yep, self.transport.startTLS(...) where self is a connected Protocol
instance. There are probably some examples in the code, or look at how
the tests do it (twisted.test.test_tcp).
More information about the Twisted-Python