[Twisted-Python] Could I serve normal TCP and TLS services on the same port?

Eric Hsu nkeric at gmail.com
Thu Jun 9 23:19:30 EDT 2005


Hi all!

I'm trying to write a server which listens on port 12345 for both TLS
and normal TCP connections:

The client first connects to the server:12345 over TLS to obtain a
one-time share secret;
then the client closes(?) the TLS connection and uses the share secret
to communicate with the server:12345 over *normal TCP*.

Could this be done? If it could, pls enlighten me with some sample
code, BIG thanks!

- Eric




More information about the Twisted-Python mailing list