Results 1 to 2 of 2
Could anyone provide me with the code!!!!!!
The bank offers an online service through which you can create an account and perform transactions. First the client program needs to connect ...
- 01-12-2009 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 1
[programming Socket in C] Online Bank Transaction.
Could anyone provide me with the code!!!!!!
The bank offers an online service through which you can create an account and perform transactions. First the client program needs to connect to the bank's server After the connection is successfully established, the client asks the user to provide a user name and password. After this the user is allowed to perform transactions. The messages the client sends must include the user name and password, and the type of transaction. A single letter denotes the available transaction types: create "C", balance “B”, deposit “D”, withdraw “W”, or quit “Q”. Deposits and withdrawals must, of course, specify the
amount of money involved. After making transactions (as many as desired), the client disconnects from the server.
To create a new account, after connecting to the server, the client sends a “create” message with the format:
Username,Password,C
User names are not case sensitive. Passwords, of course, are case sensitive. The server indicates success by echoing the account number and password in the format.
If the requested user name is already in use, the server will reply:
Requested user name already in use – try again
I
f there is anything else wrong with the transaction (e.g. bad format or missing password)
the server will reply:
Request failed
- 01-13-2009 #2
You have got to be joking me.
This is not a coders-for-hire site. If this is a homework assignment, we don't allow those. If this is for practice, then start on your own and ask us specific questions. And if this is for work, then hire somebody.DISTRO=Arch
Registered Linux User #388732


