Skip to content

zhayt/tcp-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

net-cat

TCP chat on golang

img.png

How to run

Open terminal and enter next command to run server

go run cmd/main.go --port=8080

and you can open port

sudo ufw allow 8080/tcp

and share your ip address with others, so they can connect to the chat using nc

nc 127.0.0.1 8080

or you can test it locally, just open another terminal and enter next command

nc localhost 8080

About project

TCP-chat implements the functionality of net-cat, the server runs on a port and accepts client connections to add them to the chat, and also allows you to exchange messages.

Supported

  • Server log history
  • Chat history
  • Graceful shut down
  • Concurrency

Releases

No releases published

Packages

No packages published

Languages