Skip to content

A broadcast chat system with options to set name, sent private messages and chat anonymous!

Notifications You must be signed in to change notification settings

leon-junio/chat-sockets-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CHAT WITH SOCKETS

A broadcast chat system with options to set name, sent private messages and chat anonymous! Written in C with TCP Sockets.

Requirements

  • GCC
  • Linux only (Tested with Ubuntu)
  • Port 5000 free and unlocked by firewall

Server is compatible with a remote network (AWS, AZURE or Google Cloud)

How to run

Server

  • Compile and Start server before receive connections

    gcc server.c -o server and ./server

  • Now the server is running on port 5000 and waiting for clients

Client

  • Compile and start a client (you can choose some server IP and a name) gcc client.c -o client
  • Starting client without name ./client 127.0.0.1
  • Starting client with a name ./client 127.0.0.1 usernameX
  • Type /help at client console to see more options!
  • Type anything and hit enter to sent to all other connected clients

Authors

About

A broadcast chat system with options to set name, sent private messages and chat anonymous!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages