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