Skip to content

Commit bdf60fd

Browse files
author
Scott
committed
Changed mode download to receive
1 parent bf54fa2 commit bdf60fd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

one.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def warn_md5():
1313
os.delete(filename)
1414

1515

16-
modes = ['transmit', 'download','whomadethis?']
16+
modes = ['transmit', 'receive','whomadethis?']
1717
if len(sys.argv) == 1:
1818
print("Usage: transmit (ip-to-transmit-to) (file-to-transmit)")
1919
sys.exit()
2020
if sys.argv[1] not in modes:
21-
print("Invalid mode (Transmit/Download)")
21+
print(f"Invalid mode {sys.argv[1]} (Transmit/Receive)")
2222
sys.exit()
2323

2424
if sys.argv[1] == 'transmit':
@@ -30,7 +30,7 @@ def warn_md5():
3030
print('Usage: download')
3131
if sys.argv[1] == 'whomadethis?':
3232
print(pyfiglet.figlet_format("A Programmer"))
33-
sys.exit()
33+
sys.exit()
3434
if sys.argv[1] == 'transmit':
3535
SEP = "<SEP>"
3636
BUFFER_SIZE = 4096
@@ -65,7 +65,7 @@ def warn_md5():
6565
s.sendall(bytes_read)
6666
progress.update(len(bytes_read))
6767
s.close()
68-
elif sys.argv[1] == 'download':
68+
elif sys.argv[1] == 'receive':
6969

7070
SERVER_HOST = '0.0.0.0'
7171
SERVER_PORT = 9001

0 commit comments

Comments
 (0)