Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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))
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))
Data = s.recv(size)
and then continue by writing the rest of client code
The server code start with
Import socket
s= socket.socket(socket.AF_INET, socket.sock_STREAM) # to apply tcp connection
Host =socket.gethostname()
Port= 12345
s.bind((host,port))
s.listen (5)
#declare the inputs
Card number = 22222
Pin-code = 1968
Balance = 5000
#Then write the rest of the code as the requirements needed
# using python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started