Emperor/protocol

32 lines
556 B
Plaintext
Executable File

CORE FEATURES
server <-- client
REGISTRATION
msg=ready&type=basic
OR
msg=ready&type=advanced
server --> client
ACKNOWLEDGE
user=(username of client)&msg=acknowledged
server <-- client
REQUEST COMMAND (RUNNING AT REGULAR INTERVALS)
msg=reqcmd
server --> client
RESPONSE WITH NO COMMAND IN QUEUE (RESPONSE TO PREVIOUS HTTP REQUEST)
msg=nocmd
server --> client
RESPONSE ISSUING COMMAND (RESPONSE TO PREVIOUS HTTP REQUEST)
run=id
server <-- client
RESULT
result=uid=1000(elimin8)
server --> client
ACKNOWLEDGE
user=(username of client)&msg=acknowledged