I have a While statement that starts separate threads in code.
Anywhere from 5 to 10 threads
In each thread I have a HttpWebResponse and GetResponseStream with the stream left in an OPEN state with the canread (See code below)
I need to have some way of determining if a particular stream closes...OR the thread closes or fails. (Terminology???)
So inside sub 1
Dim th As New Thread(AddressOf startPhoneMonitoring)
And inside the startPhoneMonitoring sub
' The response object of 'HttpWebRequest' is assigned to a 'HttpWebResponse' variable.
Using myHttpWebResponse As HttpWebResponse = CType(sendWebRequest.GetResponse(), HttpWebResponse)
' Displaying the contents of the page to the consoleor sending to web service/sql proc
Using streamResponse As Stream = myHttpWebResponse.GetResponseStream()
'Next Line tricks into staying in Response Stream Loop