summaryrefslogtreecommitdiffstats
path: root/src/ogProcess.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge ogRest and ogProcess to have only one classAlvaro Neira Ayuso2020-01-191-42/+0
|
* Include disconnect and send function on client sideAlvaro Neira Ayuso2020-01-191-14/+17
| | | | | | | | | To disconnect the socket or send a message we use in different parts of the code the attribute socket which is declared inside of the client. This way will create us important problem in the future if we want to change the behavior in our client sockets. This patch adds two new methods inside the client and we can use them in other classes giving us the easy way to send messages and disconnect the client.
* Add ogRest class to generate API Rest ResponsesAlvaro Neira Ayuso2020-01-191-5/+12
| | | | | This class now, allow us to generate API Rest responses. In the future, the idea is to complete this class with get and post messages if it's needed.
* Port program to Python 3Alvaro Neira Ayuso2020-01-191-1/+1
| | | | | Python 2.7 will be deprecated in January of 2020. So, we need to have the program with a supported api.
* Remove unneeded logsAlvaro Neira Ayuso2020-01-191-2/+0
|
* Add Probe HTTP CommandAlvaro Neira Ayuso2020-01-191-0/+2
|
* Send bad request when the APIRest operation is not supportedAlvaro Neira Ayuso2020-01-191-0/+4
| | | | | | | | | | | | | | Our program sends always the HTTP message: HTTP/1.0 200 OK but if the operation sent is not supported, we are sending the same correct message. This patch add the support to check if the message is supported. If the message is not supported, we are going to send: HTTP/1.0 400 Bad request\r\n\r\n Otherwise, in operations supported: HTTP/1.0 200 OK
* Add new process support for reboot messageAlvaro Neira Ayuso2020-01-191-0/+8
|
* Add ogProcess and ogOperation for linuxAlvaro Neira Ayuso2020-01-191-0/+20
Thoses new classes allows us to process and execute commands from server side sent using HTTP format.