Skip to content

A basic chat server with a few commands made through Telnet

Notifications You must be signed in to change notification settings

bumpjammy/TelnetChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TelnetChat

Description

A simple chat server in C++, using the telnet protocol.

Usage

To run the server, compile the source code (or use the precompiled binary, if it works for you) and run it. ./TelnetChat
This should start the server on port 12345.
You can then connect to the server using telnet:
telnet localhost 12345
You can also connect to the server from another computer on the same network, by replacing localhost with the server's IP address.

The server has a few basic commands:

  • $help - Displays a list of commands.
  • $color <color> - Allows user to pick from a list of colors for their username.
  • $afk - Announces that the user is away from keyboard.
  • $users - Displays a list of users currently connected to the server.
  • $exit - Disconnects the user from the server.