1 import socket # Import socket module
4 s = socket.socket() # Create a socket object
5 host = "192.168.0.106" #Ip address that the TCPServer is there
6 port = 50000 # Reserve a port for your service every new transfer wants a new port or you must wait.
10 s.connect((host, port))
13 f = open(filename,'rb')
25 elapsed_time = time.time() - t
27 print("time pil",elapsed_time)
29 print('Successfully get the file')
31 print('connection closed')