Matt Lauer

Matt Lauer

  • NA
  • 1
  • 0

Problem with TCP test program

Oct 29 2009 12:09 AM
I've been playing around with the TCP client/server sample code I found on http://www.eggheadcafe.com/articles/20020323.asp but I can't seem to get it to function correctly.  The problem I am having is that if I try to send data from the client a second time I get nothing back, not even an error that it couldn't send data.  Every time I run the project it works the first time but that's it.  When I was running the code line by line it seems to get to networkStream.Read(bytes, 0, CInt(tcpClient.ReceiveBufferSize)) and then it jumps over the rest of the routine.

Is that just some little tweak I have to do so it'll function more then once or is that code setup to only work that way?

Answers (1)