When we have a TcpClient or TcpServer or UdpClient, receiving data and then processing
them inside an infinite loop, inside a method executed by a Thread, I assume that the data
being received while the previous data are *processed* inside the loop, are queued or
something and are not dropped right? Exactly how much data this "queue" can hold?
An example of such a member function:
// UdpClient *client;
// IpEndPoint *receivePoint;
void Form1::WaitForP ackets()
{
while(true)
{
Byte data __gc[]= client->Receive(&recei vePoint);
displayTextBox->Text= String::Concat( displayTextBox->Text, S"\r\nPacket received: ",
S"\r\nLength : ", data->Length.ToStrin g(), S"\r\nContainin g: ",
System::Text::E ncoding::ASCII->GetString(data ), S"\r\n");
}
}
them inside an infinite loop, inside a method executed by a Thread, I assume that the data
being received while the previous data are *processed* inside the loop, are queued or
something and are not dropped right? Exactly how much data this "queue" can hold?
An example of such a member function:
// UdpClient *client;
// IpEndPoint *receivePoint;
void Form1::WaitForP ackets()
{
while(true)
{
Byte data __gc[]= client->Receive(&recei vePoint);
displayTextBox->Text= String::Concat( displayTextBox->Text, S"\r\nPacket received: ",
S"\r\nLength : ", data->Length.ToStrin g(), S"\r\nContainin g: ",
System::Text::E ncoding::ASCII->GetString(data ), S"\r\n");
}
}