Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions c/Chat-room/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Chat-room
A Simple Network Chat (SNC) built in C programming language. The program has two files - <b>server.c</b> and <b>client.c</b>. The program uses multithreading for handling multiple clients.

# Compile the program
Just simply run the Makefile using this command. <br/>
$ make Makefile compile

# Run the Server
The server can be run using below command. <br/>
$ ./server <maximum number of clients> <maximum idle time>

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. <br/>
$ ./client <Server's IP address> <port>

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
Loading