hello, why i cant read all bytes ? i receive 27 bytes confirmed whit wireshark.
my code for print:
it only print hello from and not the bytes 80 , 19 , 22, 50, 12 ? anyone know why?
my code for print:
C#:
Byte[] buffer = new Byte[27];
// String to store the response ASCII representation.
String responseData = String.Empty;
// Read the first batch of the TcpServer response bytes.
stream.Read(buffer, 0, buffer.Length);
//string sss = (Convert.ToString(Convert.ToChar(buffer[9])));
//MessageBox.Show(sss);
responseData = System.Text.Encoding.Default.GetString(buffer, 0, buffer.Length);
MessageBox.Show(responseData);
it only print hello from and not the bytes 80 , 19 , 22, 50, 12 ? anyone know why?