Skip to content

About

A simple chat room written in C socket

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket Chat Room

The program is a CLI-styled chat room. It's a demo of using C socket to do network programming.

Tech

Using select() to do I/O multiplexing, that is, to handle multiple file descriptor I/O simultaneously.

Specification

Server

  • send hello message to all the clients
  • send offline message to all the clients

Client

  • Command available:
    • tell <USERNAME> <MESSAGE>
    • yell <MESSAGE>
    • name <NEW USERNAME>
    • who

Usage

make
./server     #open server
./client 
./client     #can serves multiple clients(up to 15 by default) by open multiple clients simultaneously 

About

A simple chat room written in C socket

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages