socket에서 실시간으로 데이터를 받는 와중에
thread.Sleep(3000)하면 어떤 일이 벌어지나요?
--------------- 샘플 =========================================================
// Receive the host home page content and loop until all the data is received.
Int32 bytes = s.Receive(RecvBytes, RecvBytes.Length, 0);
strRetPage = "Default HTML page on " + server + ":\r\n";
strRetPage = strRetPage + ASCII.GetString(RecvBytes, 0, bytes);
while (bytes > 0)
{
bytes = s.Receive(RecvBytes, RecvBytes.Length, 0);
Thread.Sleep(3000);
strRetPage = strRetPage + ASCII.GetString(RecvBytes, 0, bytes);
}
[최초 등록일: ]
[최종 수정일: 4/17/2023]