
TCPListener.Accept() not blocking?
After looking through MSDN and the gotdotnet dateTimeServer sample, I spun
out a little net app. Well, to my suprise I started getting errors right
away. After about 5 minutes I realized my .Accept function on the listening
class was not blocking! I found a way around it (simply call .Pending to see
if there are any waiting connections, then do the Accept), but I'm curious
as to why this isn't document, and actually described as the opposite.
Ex:
' Accept will block until someone connects
Dim s As Socket = tcpl.Accept()
Nope, just returns Nothing!
Am I just doing something wrong?
Ben Vanik