1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-01 06:57:04 +01:00
Commit Graph

15 Commits

Author SHA1 Message Date
Ralf Ramsauer
951e1de987 Door: Redirect output to logfile
And use nohup for detached call.

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:48:58 +02:00
Ralf Ramsauer
c058e1e4d0 door, logic: propagate new logfile to Door class
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:48:54 +02:00
Ralf Ramsauer
7e522e59af Door: Refactor system() to own function
Preparatory work for script logging

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:17:00 +02:00
Ralf Ramsauer
573d9e7c65 Door: fix coding style
Consequently use _ for private member variables/functions.

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:12:51 +02:00
Ralf Ramsauer
62ac4f26e0 clientmessage: add token regex and getter
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-17 23:00:05 +02:00
Ralf Ramsauer
474d941918 clientmessage: Refactor token to web_address
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-17 22:57:54 +02:00
Ralf Ramsauer
9c549d1d27 Logic: Allow tokens of arbitrary length
Make token size dynamically adjustable. Shorter tokens are absolutely
sufficient and simplify the manual copying of tokens

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-04-03 17:05:23 +02:00
Ralf Ramsauer
ab8f33ebb1 Fix JSON Bug
Json::Values do not necessarily need to be JSON objects. This Patch
checks if the JSON::Value is in deed an object.

Reported-by: Markus Dollinger <dolli@ignifax.de>
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-10-27 16:05:09 +01:00
Ralf Ramsauer
38a8ccadea Improved Clientmessage 2015-10-07 15:54:28 +02:00
Ralf Ramsauer
70a4b3de03 Bugfix & logical change
- Improved doormessage
- Moved isOpen from Doormessage to Logic
2015-10-05 23:30:25 +02:00
Ralf Ramsauer
77b3c82916 removed usings from logger.cpp 2015-10-02 17:27:51 +02:00
Ralf Ramsauer
54f22393a4 Improved Logging
- removed daemon.cpp
- Added additional output logfile to Logger class
2015-10-02 17:25:16 +02:00
Ralf Ramsauer
f504cf4e92 common code style 2015-10-02 16:40:12 +02:00
Ralf Ramsauer
49a5b88f6c Big rewrite of several things
- Data type Token changed from uint64_t to std::string
- Added new class "Request" that describes a JSON TCP request
- Classes may now throw Responses for proper error handling
- Removed JSON parsing from Logic
- proper Error handling everywhere
- Many small fixes
- removed unnecessary includes
- removed using namespace std everywhere
2015-10-01 22:09:55 +02:00
Ralf Ramsauer
60ed23486b Improved directory structure
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-29 14:33:53 +02:00