summaryrefslogtreecommitdiffstats
path: root/src/HTTPParser.py
Commit message (Collapse)AuthorAgeFilesLines
* Add setup command for configuring the machineAlvaro Neira Ayuso2020-01-191-1/+23
| | | | | | | | | | ogAdmClient has a support to configure the machines. This new command allows the new ogClient to execute the same script to configure the machine. The json format sent from the server must be: { "disk" : "1", "cache" : "0", "cache_size" : "70000000",\ "partition_setup": [{"partition": "1", "code": "NTFS", "filesystem": "NTFS",\ "size": "11000000", "format": "0"}]}
* Add session command to init the opengnsys sessionAlvaro Neira Ayuso2020-01-191-0/+14
| | | | | | | | ogAdmClient has a support for initializing the session in the machine. This new command allows the new ogClient to execute the same script to init the session. The arguments will be received from the server as a json message. Format: { "disk" : "0", "partition" : "1"}
* (BUG) Fix crash when json message received is incompleteAlvaro Neira Ayuso2020-01-191-1/+6
|
* Add shell run and output commandsAlvaro Neira Ayuso2020-01-191-6/+18
| | | | | | | | Opengnsys needs a support to execute commands on the machine. This patch adds the support for executing two new commands "shell/run" and "shell/output". The first one, give us the support for executing a command in the machine and keep save in a queue the output. The second one, give us the support for sending the output from the command executed.
* Port program to Python 3Alvaro Neira Ayuso2020-01-191-3/+3
| | | | | Python 2.7 will be deprecated in January of 2020. So, we need to have the program with a supported api.
* Add HTTP parser supportAlvaro Neira Ayuso2020-01-191-0/+54
The new OpenGnsys support to communicate server and client side will be HTTP. This new class allows us the support for parsing all the message received from the server in HTTP format.