I've studied the demos but that doesn't answer all my questions.
For instance: Our code uses the OnDnsLookupDone event. I've added the OnSslHandshakeDone event.
Questions:
1) Is there a relationship between these two events?
2) Must the eventhandlers of these events have a relationship or dependancy?
We use TWSocket which uses the OnDnsLookupDone event. I have replaced TWSocket by TSslWSocket (childclass of TWSocket).
SSL is conditional, depending on a setting. In case SSL is applicable, which extra events do I use and in which order?