Threading for sockets? I know that a lot of Windows programmers swear by them, but us Unix programmers laugh at their lack of imagination ... Ha ha ha
Seriously though, there is really no need to use threading for a socket DLL. I've been using sockets for a few years without ever having to resort to using a thread. In Windows, there is actually *less* need to do so, thanks to the MS system of taking something standard and 'tweaking' it.
Anyway, the difficulty with threading *isn't* threading itself - that's quite easy. The problem is the coordination and sharing of resources between your threads using mutexes and semaphores.
If you have the platform SDK, take a look at CreateThread, CreateMutex, CreateSemaphore and all associated functions. You'll find examples there.
@TCA,
How do you do your interrupts then?
*** Soon to be released - A Network Plug-in ***
For free Plug-ins, source and the DBPro Interface library for Visual C++ 6, .NET and soon for Dev-C++
http://www.matrix1.demon.co.uk