Skip to content

anhtr13/tcp-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCP-Chat

A simple chat application using TCP socket with transport layer security(TLS).

Getting Started

1. Prerequisites:

2. Install the repository:

  go install github.com/AnhTTx13/tcp-chat

Usage

  • First start the chat client:

      tcp-chat --host=[server host/ip] --port=[server port number]
      # default: --host=localhost
      #          --port=8080
  • To send something to the server:

      > [/cmd] [message]

Command:

  • /name: Change your nick name.
  • /join: Join a room or create if it doesn't exists.
  • /msg: Send a message to a room.
  • /rooms: Get all existing rooms.

Example:

> /name xbro        # Rename to xbro
> /join room1       # Join room1
> /msg Hello there  # Send message to room1
> /join room2       # Join room2
> /msg Hello room2  # Send message to room2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages