Question: For example in client code Import socket # library s= socket.socket(socket.AF_INET, socket.sock_STREAM) # to apply tcp connection Host =socket.gethostname() Port= 12345 size = 1024 s.connect((host,port))
#write code for the server #write code for the client the Card number = 1000987 password number = 2222 then check password correct or not thrn appy transcation processs # code must must use so socket library (import socket) #tcp connection # python language please consider an ATM machine system represent (client) and server that has clients account is the bank. the server can accept multiple client (ATM machine) one at time, so will use in the code TCP connection the client must provide his card number and password first to the system .the system can send message to client if wrong password wrong any transcation process occur ,so the following item is needed : write a code that use socket programming using (python) between client and server shows the card number and password and the transcation process 1-balance 2- withdrawl 3- deposit 4- exit using TCP connection # server code and client code #using python # tcp connection
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
