From 1421ea60631216e3f9b3ce2bf909f1e480b4caca Mon Sep 17 00:00:00 2001 From: yikth Date: Fri, 2 Dec 2022 15:41:28 +0800 Subject: [PATCH] Update 'README.md' --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2c5ee5..87f4dbe 100644 --- a/README.md +++ b/README.md @@ -1 +1,10 @@ -# MultiThreadTCP \ No newline at end of file +# MultiThreadTCP + +- [Reference](https://codinginfinite.com/multi-threaded-tcp-server-core-example-csharp/) + +## Explanation +- `StartListener` method keeps listening for incoming connections & every time when a new client gets connected +- It creates a new Thread of `HandleClient` to handle the connected client in the background +- Concurrently, server start waiting for another new client. +- For client, there is 2 distinct clients connecting to the same server. +- Each client will send and receive message for 3x in interval of 2s \ No newline at end of file