"TCP over SSL" is not what you have - it is SSL that "runs" over TCP. In the case of HTTPS, you have HTTP over SSL over TCP. Here is the application-level HTTP protocol. In the case of just “SSL over TCP”, you have a custom application layer protocol, and with HTTPS you have standard HTTP.
Therefore, you can reuse portions of existing code, but you need to replace your own protocol (whatever it is) with HTTP. If the existing protocol works, there is no point in changing it (if you do not know that you need a replacement, and you know what you need).
source
share