How to Point variable to NetworkStream1 or NetworkStream2???
I am working with tcpClients with 2 connections and have the following
NetworkStream1 = tcpClient1.GetStream
NetworkStream2 = tcpClient2.Getstream
How do I assign NS to point to NetworkStream1 or NetworkStream2 depending on
the parameters passed to the sub routine.
For example
Public Sub ReadCameraData(ByVal CamNum)
Dim NS as NetworkStream
If CamNum=1 then
If CamNum =2 then
End Sub
I just want to make sure when I call NS.DataAvailable() is the same as
calling NetworkStream1.DataAvailable()
Thanks for any advice