Hi Adam,
The problem is that the DLL is quite unstable so I was trying to use a
different approach and hoping to get better stability.
Are we talking about TWSocket in your second approach?
Right now, I have the basic DLL test project running - it is connecting
to
my server but the worker
I have an existing DLL that was written to use TClientSocket via a data
module. It has a kind of message pump but it works in reverse... it has a
timer thread that uses postmessage to trigger the main app to call a
ReadData function which checks the socket for received data, then processes it.
I'm not a beginner with Delphi but I'm definitely not an expert
either so I'm really struggling to create a DLL-based WSocket
client that does what I need.
I wrote an ActiveX DLL about 10 years ago that's still used on my web
site today, doing a reverse DNS look-up on the remote IP address