Commit graph

22 commits

Author SHA1 Message Date
Berhsi
5a6a236ebc statusd.py now works with json modul
the deamon now uses the python modul json to read and write the api file. the
function replace_entry() is removed.
2019-09-08 00:31:19 +02:00
berhsi
cd1697a134 statusd.py: fix bug in change_status() 2019-07-27 19:40:16 +02:00
berhsi
01dff18c07 statusd.py: fix typo in change_status() 2019-07-27 19:32:51 +02:00
berhsi
93e1ef8e00 statusd.py: fix bug change_status() 2019-07-27 19:25:23 +02:00
berhsi
6973c1bf21 statusd.py: fix bug change_status() 2019-07-27 19:23:13 +02:00
berhsi
4c77e6b820 statusd.py: add logging messages to change_status() 2019-07-27 19:06:35 +02:00
berhsi
22f3d4e75b statusd.py: add logging message to change_status() 2019-07-27 18:58:51 +02:00
berhsi
6143456d35 setstatus.py: fix bug for setting status variable 2019-07-27 18:14:13 +02:00
berhsi
397ed52696 add file api_template 2019-07-27 17:36:07 +02:00
berhsi
976c9e7ebb statusd.py: add error message in read_api() 2019-07-27 17:31:03 +02:00
berhsi
28e8c93a28 rewrite and renaming from server-clear.py to statusd.py 2019-07-27 16:51:56 +02:00
berhsi
a9b4569dd1 config file for status deamon added 2019-07-27 16:50:19 +02:00
berhsi
777c320ce4 setstatus.py: its possible now to pass a integer to main()
to perform a stresstest its possible now to pass an integer as argument to main()
2019-07-27 16:49:08 +02:00
berhsi
868702eb8d api file added 2019-07-27 02:20:26 +02:00
berhsi
14a6e68fb8 kodierung.py gelöscht 2019-07-27 02:19:46 +02:00
berhsi
0b91b007db client and server works with bytes and nr18.space now
both parts now uses byteorder, int.from_bytes() and data.to_bytes(). to compare values,
raw data are cast to integer. furthermore encode() is nowhere used. at the moment the server
listen at nr18.space at port 10001.
2019-07-27 00:44:53 +02:00
berhsi
5522e04840 client-clear.py: bugs in main() and read_argument() fixed
read_argument(): return now outside from while loop. loop works now until a valid value ist
entered. main(): reads now a return value from server and close the socket.
2019-07-26 22:02:01 +02:00
berhsi
fd49e706f3 server-clear.py: returns now a error code if argument is invalid 2019-07-26 21:57:07 +02:00
berhsi
6574a58e15 kodierung.py added
kodierung.py provides any little functions around encoding or decoding from strings or bytes
2019-07-26 21:35:29 +02:00
berhsi
b830789f0e client-clear.py: initialer commit
initialer commit for a client, who pushs a status of one or zero to the server. if no argument
in cli, the client gives a commandline input to read.
2019-07-26 21:33:40 +02:00
berhsi
4bbd2aed54 server-clear.py: backlog changed and timeout added
the server has now a limit of 5 connections in socket.listen(). added a timeout from 3 seconds
to the connection
2019-07-26 21:30:58 +02:00
berhsi
dc088179f5 initiler commit
initialer commit eines servers, der ein bit aus einem socket liest
2019-07-26 19:43:59 +02:00