How mobtone/chattkonsolapp works
This is a small console-based TCP chat application. A user enters a server address and port in the client, supplies a display name, and sends messages; the server accepts connections, reads messages in per-client handlers, and relays them to other connected clients. The client also reads incoming messages on a separate thread. The server maintains an in-memory client list and displays a local address for invitations. The graph reflects the sampled runtime code and README; it does not imply message persistence, authentication, or encryption.
Main entry points: ChatServer.cs Server listener · ChatClient.cs Chat client
Components 8
Chat client
- Chat client
ChatClient/ChatClient.cs
Chat server
- Server listener
ChattKonsolApp/ChatServer.cs - Client handler
ChattKonsolApp/ChatServer.cs - Client list
ChattKonsolApp/ChatServer.cs - Message relay
ChattKonsolApp/ChatServer.cs - IP discovery
ChattKonsolApp/ChatServer.cs
Other components
- Console user
- Other chat clients
Connections 10
- Console user → Chat client: enters address and messages
ChatClient/ChatClient.cs - Chat client → Server listener: connects TCP
ChatClient/ChatClient.cs - Server listener → Client handler: starts handler
ChattKonsolApp/ChatServer.cs - Server listener → Client list: adds client
ChattKonsolApp/ChatServer.cs - Server listener → IP discovery: gets local address
ChattKonsolApp/ChatServer.cs - Client handler → Message relay: relays message
ChattKonsolApp/ChatServer.cs - Client handler → Client list: removes client
ChattKonsolApp/ChatServer.cs - Message relay → Client list: iterates clients
ChattKonsolApp/ChatServer.cs - Message relay → Other chat clients: sends message
ChattKonsolApp/ChatServer.cs - Chat client → Console user: displays messages
ChatClient/ChatClient.cs