+ elapsed_time += time.time() - t
+ print("send lena ",elapsed_time)
+
+ elapsed_time=0
+ t=time.time()
+ file_name="lena2.jpg"
+ for i in range(10):
+ print(file_name)
+ sbuf.put_utf8(file_name)
+
+ file_size = os.path.getsize(file_name)
+ sbuf.put_utf8(str(file_size))
+
+ with open(file_name, 'rb') as f:
+ sbuf.put_bytes(f.read())
+ print('File Sent')
+ elapsed_time += time.time() - t
+ print("send lena ",elapsed_time)