DNL
This commit is contained in:
parent
b6b3dd3a35
commit
4e5634eb1d
@ -105,13 +105,12 @@ class Server:
|
|||||||
if secondParam != "":
|
if secondParam != "":
|
||||||
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
||||||
else:
|
else:
|
||||||
# TODO
|
try:
|
||||||
# Megkapod a filenevet arguemntumkent
|
file = self.executor.getFileInCurrentDirectory(firstParam)
|
||||||
# Kuldeni kell egy uzenetet, ami a falj tartalma
|
self.networkInstance.sendMessage(file)
|
||||||
# Kuldeni kell egy uzenetet, ami EOF
|
self.networkInstance.sendMessage("OK".encode('UTF-8'))
|
||||||
# Mindig minden legyen UTF-8-kent kodolva, kiveve a falj, az marard
|
except:
|
||||||
# Ha sikeres, OK valaszt megkapod, kulonben ERROR valaszt megkapod
|
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user