I have a Web Request that I kick off with
Dim sendWebRequest As HttpWebRequest = CType(WebRequest.Create(st
The headers are set up as
sendWebRequest.Method = "POST"
sendWebRequest.KeepAlive = True
sendWebRequest.UserAgent = "CometTest"
My sending posts the xml below to the stUrl (Actually in one string)
The stUrl receives these commands (which actually means to start monitoring these VOIP phones)
I then get an "Open" response stream that runs in a loop ( While streamResponse.CanRead) and sends xml to me as a phone picks up, ends call, whatever...
WHich I send on to a WCF and which posts to our callData table
Thanks to CodeCruiser's earlier help...Works perfectly
Now I've discovered that even though we have 200 phones...
And technically I can send everything to the VOIP Vendor to monitor...
On THEIR end...it takes a @1/4 second to start the monitor on each.
And the vendor is (now) limiting the "waiting monitors" to a max of 8
Is there a way to put a 3 second pause in this thing?
Can I have 200/8 threads using the same connection?
This is the request post side of it...
Dim encodedData As New ASCIIEncoding()
Dim byteArray As Byte() = encodedData.GetBytes(postD
th = byteArray.Length
Dim newStream As Stream = sendWebRequest.GetRequestS
And here is how I'm consuming the response
' 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 console
Using streamResponse As Stream = myHttpWebResponse.GetResponseStream()
'Next Line tricks into staying in Response Stream Loop