summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Port program to Python 3Alvaro Neira Ayuso2020-01-193-19/+21
| | | | | 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
|
* Include the reboot support in ogOperationAlvaro Neira Ayuso2020-01-191-2/+4
| | | | | This new patch allows us to reboot the linux machine using reboot binary or in OpenGnsys client case, use the specific script.
* Include the poweroff support in ogOperationAlvaro Neira Ayuso2020-01-191-1/+7
| | | | | This new patch allows us to turn off the linux machine using poweroff binary or in OpenGnsys client case, use the specific script.
* Add Probe HTTP CommandAlvaro Neira Ayuso2020-01-191-0/+2
|
* Remove unneeded logsAlvaro Neira Ayuso2020-01-191-3/+0
|
* Send bad request when the APIRest operation is not supportedAlvaro Neira Ayuso2020-01-192-3/+8
| | | | | | | | | | | | | | 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-192-0/+11
|
* Execute socket loop on run socket functionAlvaro Neira Ayuso2020-01-191-0/+20
| | | | Ported code from main function to a client function for clearing the main loop.
* Add ogProcess and ogOperation for linuxAlvaro Neira Ayuso2020-01-194-0/+28
| | | | | Thoses new classes allows us to process and execute commands from server side sent using HTTP format.
* Add HTTP parser supportAlvaro Neira Ayuso2020-01-192-11/+58
| | | | | | 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.
* Modify Client state to use enumAlvaro Neira Ayuso2020-01-191-6/+8
| | | | | | | | | During our connections, we are using states to control the Client Socket. We defined using global variables. In case that we modify this global variable, we need to change it in serveral parts of the code. Using enums and declaring a new class, we can redefine the values or create new states without changing the same code in differents python files.
* Create new ogClientAlvaro Neira Ayuso2020-01-193-0/+119
This commit init the new ogClient. The new ogClient has support for configuring and for connecting with the ogAdminServer.