Compare commits
No commits in common. "f345d4b961ea2739b912b9ee9b390f39b487b275" and "5378ec8cdcd9f730f53a07678bd5d0042adf98da" have entirely different histories.
f345d4b961
...
5378ec8cdc
@ -94,14 +94,13 @@ class Server:
|
|||||||
if secondParam != "":
|
if secondParam != "":
|
||||||
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
||||||
else:
|
else:
|
||||||
fileName = firstParam
|
# TODO
|
||||||
fileMessage = self.networkInstance.recieveMessage()
|
# Megkapod a filenevet argumentumneknt
|
||||||
eof = self.networkInstance.recieveEncryptedMessage().decode('UTF-8')
|
# Fogadni kell egy uzenetet, ami a fajl tartalma
|
||||||
if eof == "EOF":
|
# Fogadni kell egy uzenetet, ami "EOF"
|
||||||
self.executor.putFileInCurrentDirectory(fileName, fileMessage)
|
# Mindig minden legyen UTF-8-kent kodolva, kiveve a falj, az marard
|
||||||
self.networkInstance.sendMessage("OK".encode('UTF-8'))
|
# Ha sikeres, OK kuldese, kulonben ERROR kuldese
|
||||||
else:
|
pass
|
||||||
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
|
||||||
elif command == "DNL":
|
elif command == "DNL":
|
||||||
if secondParam != "":
|
if secondParam != "":
|
||||||
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
||||||
|
Loading…
Reference in New Issue
Block a user