Skip to content

Latest commit

 

History

History
73 lines (56 loc) · 1.93 KB

File metadata and controls

73 lines (56 loc) · 1.93 KB

Experimental Multi Threaded Server in C++

2019 Computer Networks Programming Assignment

Client

  1. Execution environment: Ubuntu (Linux) 18.x

$ ./client

  1. Programming language: c++
  2. Required files: client executable file
  3. Compilation method:
  • First, make sure that the current directory contains: main.cpp, client.cpp, client.h, ui.cpp, ui.h, Makefile these six files
  • Ensure the environment is in Ubuntu (Linux) 18.x
  • Execute:

$ make all

  1. Execution process:
  • Execute:

$ ./client

  • Operating screen:

  • You can operate the selection position with W and S keys

  • You can start typing and confirm input through enter

  • After completing the input, select LOGIN and press enter to start login

  • Display example:

  • Select LOGOUT to log out the account

  • Select EXIT to end the program


Server

  1. Execution environment: Ubuntu(Linux) 18.x

$ ./server <port_num>

  1. Programming language: c++
  2. Required files: server executable file
  3. Compilation method:
  • First, make sure that the current directory contains: main.cpp, server.cpp, server.h, ui.cpp, threadpool.h, Makefile these six files
  • Ensure the environment is in Ubuntu (Linux) 18.x
  • Execute:

$ make all

  1. Execution process:
  • Execution: assuming port is set to 5000

$ ./server 5000

  • Operating screen:

  • The registered list will be listed under Account List

  • The current online list will be listed under Online List

  • The past Server prompt messages will be displayed under Server Log

  • Display example:

  1. Interaction message format: same as in the Programming Assignment explanation document