Before STARTTLS was well established, a number of TCP ports were defined for well known protocols which established SSL security first, and then presented a communication stream identical to the old un-encrypted protocol.
A number of TCP ports were defined for well known protocols. These well known protocols established SSL security first. These well known protocols then presented a communication stream identical to the old un-encrypted protocol. STARTTLS was well established.