recieving data in a network stream??
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
-
I'm using a network stream to send data but don't how to recieve it efficently. Reading data from the stream assumes knowing data is there. How do I know when data is waiting to be read?? Is a event triggered when data is able to be recieved?? Thanks
The
NetworkStream
object doesn't fire any events. You have to poll theDataAvailable
property of theNetworkStream
object to see if there is something to read. You can look at this[^] example for a demo ofDataAvailable
. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome