Updated handler test to send response back to test client.
This commit is contained in:
parent
8f0ddd766a
commit
7972eb3235
|
@ -24,8 +24,8 @@ def runTest():
|
||||||
bys = json.dumps({
|
bys = json.dumps({
|
||||||
"header" : {
|
"header" : {
|
||||||
"status" : "0",
|
"status" : "0",
|
||||||
"command" : {"type" : "sendServers", "data": ["10.1.0.7:2223"]}
|
"command" : {"type" : "sendClients", "data": ["deavmi"]}
|
||||||
}, "data" : receivedBys })
|
}, "data" : "length of your data: " + str(len(receivedBys)) + "\"" + receivedBys + "\"" })
|
||||||
print(s.send(len(bys).to_bytes(4, "little")))
|
print(s.send(len(bys).to_bytes(4, "little")))
|
||||||
print(s.send(bys.encode()))
|
print(s.send(bys.encode()))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue