Skip to content

Diooooo/ChatRoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatRoom

UB 2018Fall CSE589 project 1

Develop the client and server components of a text chat application, consisting of one chat server and multiple chat clients over TCP connections.

Developer

  • Bilin Shi
  • Wenqi Li

Detailed Description

In this project, TCP sockets are ONLY allowed to be used both for sending and broadcasting, select() function is used for handling multiple socket connections.
Commands that need to be implemented are listed below:

  • AUTHOR
  • IP
  • PORT
  • LIST
  • STATISTICS
  • BLOCKED
  • [EVENT]: Message Relayed
  • LOGIN
  • REFRESH
  • SEND
  • BROADCAST
  • BLOCK
  • UNBLOCK
  • LOGOUT
  • EXIT
  • [EVENT]: Message Received

Requirement

Linux/Unix: g++ 4.8 or newer version

How to start

After download the project, enter the main directory and execute the following commands:

mkdir object
make

Then run

./assignment1 [s/c] [port]

Here the first parameter means the type of terminal you want to start, s--server and c--client, the second is the port number you want to bind. After starting the program, enter the commands described above.

About

UB CSE589 project1

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages