Using Win32 socket handles?
I'm writting C# code that has to use a third party C dll. Thanks to the people at (www.swig.org) I've wrapped up the dll functions and can call them from C#.
The dll makes a number of TCP/IP socket connections to a server. It has a function that allows me to poll to see if any messages have arrived and I've being using this succesfully via a timed polling loop.
It is possible to get the win32 socket handles from the dll, the idea originally being that they get used in a C style "select()" call, in this way the applciation can be event rather than poll driven.
I'd like to make my C# app a bit more event driven but don't know the best way to proceed. Note: I only want to be notified when something arrives at the sockets I'll still use the dll code to retreive messages.
Ta,
Paul

