Skip to content

Multithreaded bank server and client system written in C.

Notifications You must be signed in to change notification settings

MSaIim/BankSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BankSystem

A simple bank server and client system written in C. Uses multithreading to allow simultaneous connections.

  • Up to 20 accounts can be made
  • Uses mutex locks to prevent multiple access to same account
  • Client may connect to any server and port via command line arguments.
  • Server is always on port 32722 (Can be changed in server.c)

Note: Client simulates multiple accounts by sleeping. You may remove the throttle() methods to speed up program.

Usage

Compile: Type 'make' in terminal | 'make clean' to remove objects files

Server: ./server (Will start and wait for incoming connections)
Client: ./client <ip address> <port>

Follow instructions in the client to continue using program. Server will print out account information every 20 seconds.

About

Multithreaded bank server and client system written in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published