Commit graph

27 commits

Author SHA1 Message Date
6df6411b72 fix clippy 2023-01-31 23:57:33 +01:00
1a413eef97
Add async version of parse_and_resolve_peer_addr 2022-09-14 15:45:05 +02:00
5da59ebec5
Move things around and fix error bit 2022-07-22 13:06:10 +02:00
0b71ca12f9
Clean up framing protocol 2022-07-22 12:45:38 +02:00
c358fe3c92
Hide streaming versions as much as possible 2022-07-22 10:55:37 +02:00
7d148c7e76
One possibility, but I don't like it 2022-07-21 19:25:07 +02:00
44bbc1c00c
Rename AutoSerialize into SimpleMessage and refactor a bit 2022-07-21 19:05:51 +02:00
26989bba14
Use Bytes instead of Vec<u8> 2022-07-21 18:15:07 +02:00
f35fa7d18d
Move things around 2022-07-21 17:37:52 +02:00
cdff8ae1be add detection of premature eos 2022-07-18 15:21:13 +02:00
0fec85b47a start supporting sending error on stream 2022-06-19 18:42:27 +02:00
5d7541e13a wait for any ready stream instead of the highest priority one 2022-06-19 17:47:41 +02:00
4745e7c4ba further work on streams
most changes still required are related to error handling
2022-06-08 09:54:38 +02:00
368ba90879 initial work on associated stream
still require testing, and fixing a few kinks:
- sending packets > 16k truncate them
- send one more packet than it could at eos
- probably update documentation

/!\ contains breaking changes
2022-06-05 15:33:43 +02:00
de981aace0
apply fmt 2021-10-18 12:59:55 +02:00
b32a799c76
Return None when no IPs could be resolved 2021-10-18 12:41:46 +02:00
238c0162c0
Add parse_and_resolve_peer_addr 2021-10-18 12:39:19 +02:00
fe16ff25e9
Export NodeKey and NetworkKey types 2021-10-14 12:08:39 +02:00
7e49d0dac8
Make a public function to parse peer addresses 2021-10-14 11:58:09 +02:00
01a2737bd8
Document 2021-10-14 11:35:05 +02:00
dd881e2e60
Add a modest integration test 2021-10-13 18:05:49 +02:00
70839d70d8
Try to handle termination and closing of stuff properly 2021-10-13 17:12:13 +02:00
7753b789b7
Upgrade to tokio 1.0 2021-10-12 13:07:34 +02:00
6742638c81 Replace pk,pubkey,PublicKey by id,NodeID,etc 2020-12-12 21:14:15 +01:00
5a9ae8615e Do not close connections immediately on close signal, await for remaining responses 2020-12-07 13:35:24 +01:00
14d34e76f4 Documentate 2020-12-02 20:12:24 +01:00
d4de2ffc40 First commit 2020-12-02 13:30:47 +01:00