Skip to content

A simple client-server console application that allows many clients to connect to a single server using multi-threading and network sockets. The application also demonstrates using cryptography (and a set of public and private keys) to encode messages for transport, and a MySQL database for validating users.

Notifications You must be signed in to change notification settings

CQURepository/client-server-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client-Server App

A simple client-server console application that allows many clients to connect to a single server using multi-threading and network sockets. The application also demonstrates using cryptography (and a set of public and private keys) to encode messages for transport, and a MySQL database for validating users. The app then allows logged-in users to performs various tasks, which have been abstracted using a simple 'Task' interface.

  1. With your MySQL server running, create a new database using this script.
  2. Start a new Server using your terminal or IDE.
  3. Start any number of Client instances and login using any of the users in your database.
    The following usernames and passwords are the default ones given in the script above:
    username password
    Adam adam.123
    Brian brian.123
    Chris chris.123
    John john.123
    Peter peter.123

You should now have multiple client instances connected to the same single server instance like shown below.

This is just a simple demonstration project, but please be sure to submit a pull request if you have any improvements you would like to contribute to make it better 👍

About

A simple client-server console application that allows many clients to connect to a single server using multi-threading and network sockets. The application also demonstrates using cryptography (and a set of public and private keys) to encode messages for transport, and a MySQL database for validating users.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages