Commit Graph

18 Commits

Author SHA1 Message Date
Evgeny Poberezkin 2e6ba85308 SMP client library (#9)
* functions to send SMP commands and receive responses

* refactor agent: use SMPClient

* fix tests, remove ServerClient.hs

* refactor processCommand

* fix Agent.hs

* fix SMPClient, tests

* "forever" to SMPClient process
2021-02-26 18:09:26 +04:00
Evgeny Poberezkin 02a15f9f25 agent tests (#8) 2021-02-26 18:09:26 +04:00
Evgeny Poberezkin 253f4e39c9 JOIN command (#4)
* parse JOIN command

* parse JOIN command

* serialize NEW command

* parse and serialize CON response

* process JOIN command: SEND confirmation (WIP)

* process response to the confirmation from JOIN command

* remove comment
2021-01-11 18:31:10 +00:00
Evgeny Poberezkin 394803b3cf remove/fix compiler warnings 2021-01-09 20:48:07 +00:00
Evgeny Poberezkin d1c5e9df7b agent: ErrorType constructor for store errors, exceptions are caught 2021-01-09 19:55:42 +00:00
Evgeny Poberezkin 3dbdb948ae agent: respond with INV (TODO: store exception blows up; select does not work without port 2021-01-09 19:23:32 +00:00
Evgeny Poberezkin 0d0a12f778 refactor store: m (Either e a) => ExceptT e m a 2021-01-09 11:18:52 +00:00
Evgeny Poberezkin d260a464d6 add error handling, function to process SMP responses 2021-01-03 10:42:41 +00:00
Efim Poberezkin 3c1834f93f implement addServer command 2020-12-30 18:54:17 +04:00
Evgeny Poberezkin cdf8695bef send NEW command to SMP server (response is not received for some reason...) 2020-12-29 20:51:09 +00:00
Evgeny Poberezkin fdf35ba214 stub function to process client commands 2020-12-29 13:32:45 +00:00
Evgeny Poberezkin 9d15035fb3 client/agent transmission types, parse NEW/INV commands 2020-12-29 13:11:46 +00:00
Evgeny Poberezkin cf38b4dddf agent: Transmission type 2020-12-28 20:42:47 +00:00
Evgeny Poberezkin a61d97aee0 rename Agent/Command -> Agent/Transmission 2020-12-28 17:08:48 +00:00
Evgeny Poberezkin 18ab9650b4 move queries to code 2020-12-27 12:47:39 +00:00
Evgeny Poberezkin 501e8a140a rename Env.hs -> Env/SQLite.hs 2020-12-26 13:01:57 +00:00
Evgeny Poberezkin c5a8bf6f40 SMP agent: receive/send via TCP and queues 2020-12-25 21:36:51 +00:00
Evgeny Poberezkin b234c0afee started SMP agent 2020-12-25 16:46:18 +00:00