jonpecson / telnet-chat-server

The project includes a server and a client. The server listens for TCP client connections. Once a client is connected to the server, the server maintains the connection in a collection. Every time a message is sent from a client to the server, the server broadcasts the message to all clients in the collection.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telnet-chat-server

This project is a simple TCP/IP based chat app based on C#.

  • Implement a TCP server application performing as a chat server.
  • Clients should be able to connect to the listening port using plaintext protocol and be able to communicate with each other.
  • Messages are separated by , when connected:
  • User should be presented with a list of users currently online,
  • Everyone see messages from everyone,
  • Server should support /nick
  • Command for users to be able to redefine the default auto-assigned nickname "GuestNNN" and /register command for users to be able to protect their nickname

Installation

Clone the project

$ git clone https://github.com/jonpecson/telnet-chat-server

Running the Server:

  1. Open the ChatAppV2.sln
  2. Select ChatServer as Startup Project
  3. Click 'Start'

Running the Client:

  1. Open another instance of ChatAppV2.sln
  2. Select ChatClient as Startup Project
  3. Click 'Start'

You can then run a multiple instance of the client.

About

The project includes a server and a client. The server listens for TCP client connections. Once a client is connected to the server, the server maintains the connection in a collection. Every time a message is sent from a client to the server, the server broadcasts the message to all clients in the collection.


Languages

Language:C# 100.0%