guys im trying to convert this from udp to tcp:
byte[] encoded = selectedCodec.Encode(e.Buffer, 0, e.BytesRecorded);
udpListener.Send(encoded, encoded.Length);
i got this so far:
Stream = TCPClient.GetStream();
byte[] encoded = selectedCodec.Encode(e.Buffer, 0, e.BytesRecorded);
Stream.Write(encoded, encoded.Length);
but stream.write takes 1 more constructer