Evgeny Poberezkin
|
6526e421e8
|
insertWithLock
|
2021-01-03 11:44:07 +00:00 |
|
Evgeny Poberezkin
|
48967167c4
|
add table mutexes for insert queries (to get inserted ID thread-safely via single connection)
|
2021-01-03 11:31:06 +00:00 |
|
Evgeny Poberezkin
|
d260a464d6
|
add error handling, function to process SMP responses
|
2021-01-03 10:42:41 +00:00 |
|
Evgeny Poberezkin
|
24bca7650e
|
throw exception from Transport.StartTCPClient when no provided address works (and on empty list of addresses)
|
2021-01-02 16:55:43 +00:00 |
|
Evgeny Poberezkin
|
42ab7fb6ac
|
test against localhost
|
2020-12-30 21:26:46 +00:00 |
|
Evgeny Poberezkin
|
80b4ff365d
|
TCP client: try all resolved addresses, not just the first
|
2020-12-30 21:25:49 +00:00 |
|
Evgeny Poberezkin
|
f3cd3eac58
|
add protocol version in TCP welcome
|
2020-12-30 18:50:50 +00:00 |
|
Efim Poberezkin
|
3c1834f93f
|
implement addServer command
|
2020-12-30 18:54:17 +04:00 |
|
Evgeny Poberezkin
|
44b58a5bf0
|
fix: agent communicates with local SMP server
|
2020-12-29 21:21:51 +00: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 |
|
Efim Poberezkin
|
d6e1aeacdf
|
write null sender queue on initial connection insert
|
2020-12-29 22:19:20 +04:00 |
|
Efim Poberezkin
|
92d170f178
|
add queries drafts for insertion of server, queue, connection
|
2020-12-29 21:30:00 +04: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
|
dabef7f0d1
|
use quasiqoutes for queries
|
2020-12-28 21:23:28 +00:00 |
|
Evgeny Poberezkin
|
cf38b4dddf
|
agent: Transmission type
|
2020-12-28 20:42:47 +00:00 |
|
Efim Poberezkin
|
c47f583574
|
add unique constraints todo
|
2020-12-28 23:50:04 +04:00 |
|
Efim Poberezkin
|
dea5c6478a
|
change fields to blobs
|
2020-12-28 23:32:05 +04:00 |
|
Efim Poberezkin
|
205c6bf117
|
add servers table to database
|
2020-12-28 22:06:01 +04:00 |
|
Evgeny Poberezkin
|
87f2c20ee4
|
type CorrelationId -> newtype CorrId (to avoid incorrect order in tuple)
|
2020-12-28 17:41:30 +00:00 |
|
Evgeny Poberezkin
|
a61d97aee0
|
rename Agent/Command -> Agent/Transmission
|
2020-12-28 17:08:48 +00:00 |
|
Evgeny Poberezkin
|
43baacc5be
|
move SMP server specific methods from Transport to Server/Transmission
|
2020-12-28 17:07:11 +00:00 |
|
Evgeny Poberezkin
|
d95936a770
|
Merge pull request #2 from simplex-chat/correlation-id
add corellationId to SMP protocol server (WIP)
|
2020-12-28 16:56:03 +00:00 |
|
Evgeny Poberezkin
|
f61ad27fcd
|
docs: add correlation IDs to examples
|
2020-12-28 16:28:57 +00:00 |
|
Evgeny Poberezkin
|
7f1d3da202
|
refactor msgResp helper function
|
2020-12-28 16:24:58 +00:00 |
|
Evgeny Poberezkin
|
e7581a91a8
|
test: update tests to include correclation ID in the tests themselves
|
2020-12-28 15:39:28 +00:00 |
|
Evgeny Poberezkin
|
4b8f6417f8
|
add correlationId to SMP transmissions, fix tests
|
2020-12-28 13:55:53 +00:00 |
|
Evgeny Poberezkin
|
02cb6068a2
|
create all tables
|
2020-12-27 21:32:30 +00:00 |
|
Evgeny Poberezkin
|
9d8df33cf7
|
delete agent database from source
|
2020-12-27 21:28:30 +00:00 |
|
Efim Poberezkin
|
a6bd03bf99
|
add agent ddl draft
|
2020-12-27 22:06:37 +04:00 |
|
Evgeny Poberezkin
|
e418498334
|
move queries to code
|
2020-12-27 12:48:46 +00:00 |
|
Evgeny Poberezkin
|
18ab9650b4
|
move queries to code
|
2020-12-27 12:47:39 +00:00 |
|
Evgeny Poberezkin
|
7bcd5ebcef
|
agent: creating schema
|
2020-12-27 10:26:08 +00:00 |
|
Evgeny Poberezkin
|
a3b53f68c5
|
empty database schema
|
2020-12-26 21:22:17 +00:00 |
|
Evgeny Poberezkin
|
501e8a140a
|
rename Env.hs -> Env/SQLite.hs
|
2020-12-26 13:01:57 +00:00 |
|
Evgeny Poberezkin
|
027b91098d
|
MonadAgentStore class
|
2020-12-26 12:55:23 +00:00 |
|
Evgeny Poberezkin
|
f7e0b26297
|
rename Agent/ConnStore -> Agent/Store
|
2020-12-26 11:06:21 +00:00 |
|
Evgeny Poberezkin
|
c195c79367
|
SMP agent: data types for connections and message delivery
|
2020-12-26 10:58:50 +00:00 |
|
Evgeny Poberezkin
|
2a87a1b5c9
|
diagram: invalid syntax response without roundtrip
|
2020-12-25 22:07:30 +00:00 |
|
Evgeny Poberezkin
|
d4c4c467f4
|
diagram: agent replies invalid commands without roundtrip
|
2020-12-25 21:59:36 +00:00 |
|
Evgeny Poberezkin
|
14d7619bbf
|
comments to commands flow
|
2020-12-25 21:44:02 +00:00 |
|
Evgeny Poberezkin
|
c5a8bf6f40
|
SMP agent: receive/send via TCP and queues
|
2020-12-25 21:36:51 +00:00 |
|
Evgeny Poberezkin
|
2362a22f7a
|
diagram: 1 commands queue per SMP queue to correlate commands with responses
|
2020-12-25 20:54:20 +00:00 |
|
Evgeny Poberezkin
|
b234c0afee
|
started SMP agent
|
2020-12-25 16:46:18 +00:00 |
|
Evgeny Poberezkin
|
2ed24e683e
|
rename Config to ServerConfig
|
2020-12-25 16:46:17 +00:00 |
|
Efim Poberezkin
|
6249bf749e
|
fix SMP command mentioned in Duplex subscribe
|
2020-12-25 19:18:37 +04:00 |
|
Efim Poberezkin
|
990ff1d7ed
|
describe subscribe command
|
2020-12-25 19:05:07 +04:00 |
|
Efim Poberezkin
|
c35b838e06
|
remove list from commands
|
2020-12-25 18:16:20 +04:00 |
|
Efim Poberezkin
|
77a532ff13
|
mark agent commands description as outdated
|
2020-12-25 18:14:44 +04:00 |
|
Evgeny Poberezkin
|
3eb33363a0
|
update diagram
|
2020-12-25 13:34:45 +00:00 |
|