Skip to content

BigdataXiangGD/ChatServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

Guidong Xiang 17301984

Server

  • ChatServer.java: multiplex IO service, can response to any client socket any time with non-blocking IO.
  • ChatService.java: A Class for managing chat rooms. Decoupling handler codes from IO-relative codes.

How to run programs

  1. git clone https://github.com/BigdataXiangGD/ChatServer
  2. cd ChatServer/ChatServer
  3. Use ./compile.sh to compile source codes.
  4. Use ./start.sh <port> to run chat server.
  • Notice:
  1. The ChatServer can not shut down by the given Chat Server Test, you should use telnet <Server IP> <Server Port> and then input KILL_SERVICE to force the Server to shutdown, thus the test could be forced to end.
  2. Execute ./start_client.sh <Server IP> <Server port> to run client.
  3. The ChatClient hasn't KILL_SERVICE command. Users can use telnet <Server IP> <Server Port> and then input KILL_SERVICE to see the result.

Test result

  • Grade: 73 = round( (75 / 75) * 20 + (1275 / 1755) * 70 + (5 / 25) * 10)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published