|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Multithreading with Winsock
Hi Guys,
I have learned how multithread with VB (yes, that's right, real multithreading!). However, I am using Winsock in my application, and I am planning on doing the following: Have one thread that listens for connections, then when a connection request is made, a new thread is loaded, and that thread accepts the connection request... thus making a new thread for each session. It half works at the moment, but I am having a problem where the connections just die for no reason. I found the following webpage, and it explains my problem word-for-word: Multithreading with Winsock (A short paragraph written by some guy) So, do you recon it's official, and that it cant be done? Or do you recon there is a way around it? (p.s. MSDN says that you CAN do multithreading with VB.) (p.p.s. Doug, before you say 'Find a Winsock Guru', I have already looked, but I can’t find anyone that knows much more about it than I do)
__________________
LozWare Website Directory Whooo! Free submissions, no recip needed. I'm a nice guy
Last edited by LozWare : May 1st, 2006 at 03:11 PM. |
|
#2
|
||||
|
||||
|
Ok, I have found out that despite what MSDN says, you cant pass the RequestID accross threads in Visual Basic.
However, here is how I resolved it....I used SocketWrench! SocketWrench is like Winsock, but it's 50x better, and it supports multithreading. I just thought I would post my findings incase anyone else was wondering how you do multithreading with Winsock. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Multithreading with Winsock |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|