Task: Implement TcpClient Connection Timeout in C
Task: Implement TcpClient Connection Timeout in C: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a C solution that allows setting a connection timeout for a TcpClient . The standard TcpClient constructor blocks for 10-15 seconds when the remote host is unreachable. Your task…
The task
You need to implement a C# solution that allows setting a connection timeout for a `TcpClient`. The standard `TcpClient` constructor blocks for 10-15 seconds when the remote host is unreachable. Your task is to create a solution that times out the connection attempt after a configurable duration (default 1 second).
Part of PrimeIntellect/Terminal-Lego-15k.