Skip to content

Simulating ATM (client-server model) using TCP and SQLite

Notifications You must be signed in to change notification settings

BaneTrifa/ATM-Simulation-using-TCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simulating ATM using TCP

The goal of this project is to simulate ATM (client-server model) using TCP and SQLite.

Prerequisite

            1. Installing sqlite3: 
                        sudo apt update
                        sudo apt upgrade
                        sudo aptinstall sqlite3
            2. Install SQLite C library that implements an SQL database engine: 
                        sudo apt-get install libsqlite3-dev

Description

In the project, 2 sides are implemented, server-side and client-side. The idea is for each side to run on a separate workstation, but for testing purposes, they can be run on the same workstation. In this case, the server-side simulates a bank server where client data and their accounts are stored. Meanwhile, the client-side simulates an ATM.

Run applications

SERVER SIDE:
      1. Position yourself to /server/src/ directory
      2. Open terminal and run 'make' command
      3. Run ./server 
CLIENT SIDE:
      1. Position yourself to /client/src/ directory
      2. Open terminal and run 'make' command
      3. Run ./client

Demonstration of functionalities

0. When you run client side, on server terminal by ATM number will be flag "1".

1asd

1. Logging in: You can log in with either your username or card number. 
   If you enter an incorrect password, a log for the incorrect password attempt is printed on the server side.
   The server is located in the upper-right window, while clients are in the other three windows.

2sds

2. Optinios: After successful login, options offered by the ATM are displayed.
   I won't reveal any of the options here; I'll leave that for you to discover :)

3sdfsd

Author

About

Simulating ATM (client-server model) using TCP and SQLite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published