https://github.com/sambhav/bms
A simple Bank Management System using unix sockets
https://github.com/sambhav/bms
assignement bank c management networks sockets system unix-socket
Last synced: 9 months ago
JSON representation
A simple Bank Management System using unix sockets
- Host: GitHub
- URL: https://github.com/sambhav/bms
- Owner: sambhav
- License: other
- Created: 2017-03-08T10:29:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-31T10:17:11.000Z (over 9 years ago)
- Last Synced: 2025-04-09T23:38:33.511Z (about 1 year ago)
- Topics: assignement, bank, c, management, networks, sockets, system, unix-socket
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# BMS
A simple Banking Management System using unix sockets
## How to Run
* Compile the server and client
```
gcc myserver.c -o myserver
gcc myclient.c -o myclient
```
* Run the server in one terminal instance with the port as the first argument
```
./myserver $PORT
```
* Run the client in a different terminal tab with the IP and port of the server instance as its arguments.
```
./myclient $IP $PORT
```
For local debug environment IP = 127.0.0.1
* Create a login credentials file named ***login_file***. The format of an example *login_file* is given below
```
Customer1 Pass1 C
Customer2 Pass2 C
Admin Admin A
Police Police P
```
The format is
```
$USERNAME $PASSWORD $AUTH_TYPE
```
where AUTH_TYPE can be **A** for admin, **P** for police and **C** for customers.