I’m trying to read the data from UDP client and show it in textbox
UDP packets are received from IP Camera (China Models)
Successfully I am able to read the packets and store it in List<string>
<code>List<string> responses = new List<string>();
byte[] bytesRead = client.Receive(ref receiverEndPoint); //Data packets are received here from the camera
responses.Add(Encoding.ASCII.GetString(bytesRead));
</code>
<code>List<string> responses = new List<string>();
byte[] bytesRead = client.Receive(ref receiverEndPoint); //Data packets are received here from the camera
responses.Add(Encoding.ASCII.GetString(bytesRead));
</code>
List<string> responses = new List<string>();
byte[] bytesRead = client.Receive(ref receiverEndPoint); //Data packets are received here from the camera
responses.Add(Encoding.ASCII.GetString(bytesRead));
I’m displaying the response to textbox.
<code>foreach (var str in responses)
{
tbResult.Text += "nn" + str;
}
</code>
<code>foreach (var str in responses)
{
tbResult.Text += "nn" + str;
}
</code>
foreach (var str in responses)
{
tbResult.Text += "nn" + str;
}
When I am trying to display the string to textbox, only few characters are displayed
In visual studio debugger, responses contains all the characters
7