Skip to content

Project to make a fully functional TCP Chat server in C, along with the client programs. Uses C sockets, netdb, netinet, arpa/inet libraries. Multiple clients can connect, each with unique usernames decided via prompt at connection time.

parthnan/FullTCP-Chat-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TCP Chat System using Socket Programming

Project to make a fully functional TCP Chat server in C, along with the client programs. Uses C sockets, netdb, netinet, arpa/inet libraries. Multiple clients can connect, each with unique usernames decided via prompt at connection time. Each user's message will be displayed along with the Date,Time,IP Address as shown below:

In the image, the bottom terminal is the server, the top two are two clients connected though the server. The two clients send each other greetings.

  alt text

Users can be forced on a 60 second auto-timeout. The Server allows viewing all connected users and their usernames via the command "/list", and also provides a 10 second warning before shutdown(if requested). Example of Warning is shown below.

alt text

Secret Messages between two users supported too as shown below, between users "one" and "two":

alt text

About

Project to make a fully functional TCP Chat server in C, along with the client programs. Uses C sockets, netdb, netinet, arpa/inet libraries. Multiple clients can connect, each with unique usernames decided via prompt at connection time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages