Skip to content

Commit

Permalink
debug 1
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhang2816 committed Apr 19, 2022
1 parent 7d73443 commit 209e819
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Binary file modified client/.DS_Store
Binary file not shown.
16 changes: 8 additions & 8 deletions client/mclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def receive_and_unzip():
zip_and_transfer()
s.close()

s = socket.socket()
s.connect(ip_port)
server_reply = s.recv(1024).decode('utf-8')
print(server_reply)
# s = socket.socket()
# s.connect(ip_port)
# server_reply = s.recv(1024).decode('utf-8')
# print(server_reply)

receive_and_unzip()
print("total time: ",time.time()-start_time)
os.remove("tmp.zip")
s.close()
# receive_and_unzip()
# print("total time: ",time.time()-start_time)
# os.remove("tmp.zip")
# s.close()
Binary file modified server/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions server/mserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def receive_and_unzip():
while(client_data):
f.write(client_data)
total += len(client_data)
print(total)
client_data = conn.recv(1024)
f.close()
with zipfile.ZipFile(filename, 'r') as file:
Expand Down

0 comments on commit 209e819

Please sign in to comment.