Jump to content
Droesjba

TSslWSocket instead of TWSocket

Recommended Posts

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? 

Share this post


Link to post

If you connect to an SSL server, several events may be called to allow you to check ALPN and SSL certificate chain, but they are optional.   There are several SSL demos that illustrate all this.

 

Angus

 

Share this post


Link to post

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?

Share this post


Link to post

No, those events are totally unrelated and have no relationship, except they are called by the same object. 

 

Angus

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×