Support for TCP and TCP+TLS