How miguelrg14/vs_csharp-networking works
This repository combines a TCP group-chat application with standalone networking coursework. The chat workflow is console client → framed TCP lines → asynchronous server registration and command handling → thread-safe room broadcasts and message history, with interchangeable memory or SQLite storage. The server also serves history, search, and author statistics; the coursework separately demonstrates threads and a raw-socket echo server. Edges reflect calls visible in excerpts or capabilities documented in the README; unsampled command details are represented only where documented.
Main entry points: ChatServer.cs Async server · ChatRoom.cs Chat room · IMessageStore.cs Store interface · Program.cs Server console
Components 17
Chat applications
- Client console
src/Chat.Client/Program.cs - Server console
src/Chat.Server/Program.cs
Chat runtime
- TCP client
src/Chat.Core/ChatClient.cs - Line connection
src/Chat.Core/LineConnection.cs - Chat protocol
src/Chat.Core/ChatProtocol.cs - Async server
src/Chat.Core/ChatServer.cs - Chat room
src/Chat.Core/ChatRoom.cs - Chat messages
src/Chat.Core/ChatMessage.cs
Message storage
- Store interface
src/Chat.Core/IMessageStore.cs - Memory history
src/Chat.Core/InMemoryMessageStore.cs - SQLite history
src/Chat.Storage.Sqlite/SqliteMessageStore.cs - SQLite database
Networking coursework
- Basics console
src/NetworkingBasics/Program.cs - Thread exercises
src/NetworkingBasics/Exercises/ThreadExercises.cs - Echo demo
src/NetworkingBasics/Echo/EchoDemo.cs - Raw-socket echo
src/NetworkingBasics/Echo/EchoServer.cs
Other components
- Chat user
Connections 19
- Chat user → Client console: types input
src/Chat.Client/Program.cs - Client console → TCP client: connects and sends
src/Chat.Client/Program.cs - TCP client → Line connection: reads and writes
src/Chat.Core/ChatClient.cs - Client console → Chat protocol: uses commands
src/Chat.Client/Program.cs - Server console → Async server: starts and runs
src/Chat.Server/Program.cs - Server console → Memory history: selects memory
src/Chat.Server/Program.cs - Server console → SQLite history: opens SQLite
src/Chat.Server/Program.cs - Async server → Line connection: serves lines
src/Chat.Core/ChatServer.cs - Async server → Chat room: registers and dispatches
src/Chat.Core/ChatServer.cs - Async server → Chat protocol: handles commands
src/Chat.Core/ChatServer.cs - Chat room → Chat messages: creates messages
src/Chat.Core/ChatRoom.cs - Chat room → Store interface: adds history
src/Chat.Core/ChatRoom.cs - Chat room → Store interface: queries history
src/Chat.Core/ChatRoom.cs - Store interface → Memory history: implemented by
src/Chat.Core/InMemoryMessageStore.cs - Store interface → SQLite history: implemented by
src/Chat.Storage.Sqlite/SqliteMessageStore.cs - SQLite history → SQLite database: reads and writes
src/Chat.Storage.Sqlite/SqliteMessageStore.cs - Basics console → Thread exercises: runs exercises
src/NetworkingBasics/Program.cs - Basics console → Echo demo: runs demo
src/NetworkingBasics/Program.cs - Echo demo → Raw-socket echo: starts server
src/NetworkingBasics/Echo/EchoDemo.cs