I would like to know if you can help me with a Multithread Winsock Application in Visual Basic 6.0
If yes, could you send me an example? The project is like that:
- Several threads (with its own winsock) will be listening the same port.
- Would be great if threads were being created when new winsocks were necessary, but if your sample code came with a predefined number of threads, no problem!
- When a connection request (or data) arrives; one free thread (or create a new thread) will handle this event and will connect to a database, grab some information and will send data through this socket again, will also receive data from this socket, doing a "hand shake", till a close event arrives.
I would like something fast because the time is running and I'm about to be hang!!! I'm sure doing the project as described above I will survive... (I'm crazy about it, now is 11:04 PM GMT -3 ---> March, 27 of 2004 ++++ Saturaday night)