complete_info=''
while True:
msg = s.recv(2) # here 1024 is a buffer which specifies how many chunks of data we can recieve at a prticulat time(can be increased if the files to be transferred are huge)
if len(msg)<=0:
break
complete_info+=msg.decode("utf-8")
print(complete_info)