HF RL Explorer

Async TCP Client Implementation in C

Async TCP Client Implementation in C: a task in Terminal-Lego-15k (Harbor dataset). You are given a basic TCP client implementation in C that uses the older BeginRead / EndRead (APM - Asynchronous Programming Model) pattern with TcpClient . Your task is to refactor and improve this client to use…

The task

You are given a basic TCP client implementation in C# that uses the older `BeginRead`/`EndRead` (APM - Asynchronous Programming Model) pattern with `TcpClient`. Your task is to **refactor and improve** this client to use the modern `async/await` pattern, add proper **disconnect detection and handling**, implement…

Part of PrimeIntellect/Terminal-Lego-15k.