Skip to content

A C++ project that implements a multi-threaded server and client system.

License

Notifications You must be signed in to change notification settings

h920032/Multi-threaded-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A C++ project that implements a multi-threaded server and client system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published