This implementation does not provide any security. It is just a learning project for using TCP and UDP sockets in C++.
(Bachelor's homework)
- Use
make
to build the server and client source files; - Use
make clean
to delete the executables.
The server accepts multiple clients connected at the same time by using multiplexing.
Make sure you start the server first, before trying to connect any clients to it.
<server_port>
is a port number you want to use for the server;<users_info>
is the text file that acts as a data base containing the users' bank accounts information.
quit
-> shuts down the server
<server_ip>
-> use127.0.0.1
if you're running the clients and the server on the same machine;<server_port>
-> make sure is the same one used to start up the server.
login <card_number> <pin>
logout
listsold
-> works only with authentificated clients and prints the amount of money in the bank accounttransfer <destination_cardNo> <sum>
unlock
-> sends an unlock request for the last card number for which the client attempted to log onquit
-> shuts down the client