I want the client program to wait for the server program to be running , before it sends out the message.
presently I have this code:
import socket
s=socket.accept()
s.connect(("192.168.1.34".8040))
f=open("tes.png","rb")
l=f.read(1024)
while(1):
s.send(l)
l.read(1024)
s.close()
Now if i run the client program without running the server program, i obviously get an error saying no route found.
How do I change this program in such a way that the client waits for the server to be running and then send the message.