feat : 패킷 전송완료 개수 시간 체크 기능 추가

This commit is contained in:
qornwh1
2026-03-03 09:07:18 +09:00
parent d73487df5b
commit 01d107def3
3 changed files with 45 additions and 2 deletions

View File

@@ -19,6 +19,13 @@ public class DummyClients
private ConcurrentDictionary<int, long> pendingPings = new();
private int seqNumber;
// 유닛 테스트용 (0 = 제한 없음)
public int TestCount
{
get;
set;
} = 0;
// 통계
public int SentCount
{
@@ -81,6 +88,12 @@ public class DummyClients
}
ReceivedCount++;
if (TestCount > 0 && ReceivedCount >= TestCount)
{
peer.Disconnect();
}
reader.Recycle();
};