Hi

 

 

We have been using the TWSocket component in several non-blockling
multithreaded applications,

but now we would like to use the TSslWSocket in a similar manner.

 

Using the TWSocket we usually in the mainthread have:

 

...

TWSocket* ServerWSocket ...

...

 

MainThread::ServerWSocketOnSessionAvail()

{

                             TMyThread* t = new TMyThread(
ServerWSocket->Accept() );

 

                             // ready to process next session ...

}

 

And then in the TMyThread class

 

TMyThread::TMyThread(int socketHandle)

{

                             m_hSocket = socketHandle

}

TMyThread::Execute()

{

                             m_pClientSocket = new TWSocket(null);

                             ...

m_pClientSocket->HSocket         = m_hSocket;// or using Dup(m_hSocket)

                             ...

                             // do stuff ...

}

 

 

How do we use the TSslWSocket in a similar manner with SSL enabled,
though only with a server certificate ?

 

I should note that the server uses a custom protocol, so it's not a
http(s) server application.

 

 

Best regards

Kurt

 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to