Skip to content

SasikaSankalana/Chat-room

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Chat-room

A Simple Network Chat (SNC) built in C programming language. The program has two files - server.c and client.c. The program uses multithreading for handling multiple clients.

Compile the program

Just simply run the Makefile using this command.
$ make Makefile compile

Run the Server

The server can be run using below command.
$ ./server

Maximum number of clients - Should be in range of 1 to 10 Maximum idle time - Should be in range of 1 to 300 seconds

eg:- $ ./server 5 200

Run the Client

The client can be run using below command.
$ ./client <Server's IP address>

In here server IP is set to be - 127.0.0.1 and port is set to be 4444

eg:- $ ./client 127.0.0.1 4444

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages