Skip to content

Commit 61fe6f6

Browse files
committed
update readme, add files
1 parent d911bb0 commit 61fe6f6

File tree

3 files changed

+394
-2
lines changed

3 files changed

+394
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The high-level design of the system is as follows:
3535

3636
The main thread handles incoming connections and spawns a child thread for each client that connects.
3737

38-
There is one shared data structure which is a hashmap that maps chatroom names to lists of client connections (TCP streams) in the respective chatroom. This data structure is protected by a mutex and is using rust's ARC data type (ARC = Automatically referenced counted) -- a thread safe reference counting pointer.
38+
There is one shared data structure which is a hashmap that maps chatroom names to lists of client connections (TCP streams). This data structure is protected by a mutex and is using rust's ARC data type (ARC = Automatically referenced counted) -- a thread safe reference counting pointer.
3939

4040
When a client types a message, joins, or disconnects from a chat room the thread for which that client is running in attempts to aquire the mutex. Once the mutex
4141
is aquired the client thread will query, delete, or update the shared data store and write to each other client the desired message which corresponds to the action the client is taking (i.e. leaving chat, sending a message etc).

src

-1
This file was deleted.

0 commit comments

Comments
 (0)