trivernis
e62e841d47
Add copyright to source files
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
d017e8e250
Rewrite server to be asynchronous
...
Rewrite of the vented server that uses async-std and async tcp
streams. The Protocol itself is unchanged but the api for implementations
needs to be adapted.
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
7fb2b5d647
Change read and write behaviour
...
Read and write is now done in separate threads. Each connections
starts up a read and write thread that lock until a value is retrieved.
Events are handled by one thread in the server. Data is synchronized
via mpmc channels.
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
9137eeb673
Add error and success callback to AsyncValue
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
e0ea66f7c1
Reexport WaitGroup
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
bf72aeeeb8
Rewrite server to use custom encryption
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
15221b6f59
Add vented client implementation
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
e6edb20b7e
Add tcp server implemenation and change event to store generic payloads
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
c550acc129
Add event handler
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
d5d8875e79
Move event_tests to event submodule
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
ae39bc50bd
Change visibility of test struct
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
253a5958b0
Add tests for serialization and deserialization
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
3139745590
Rename Message to Event and add from_bytes implementation
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
7f6450be48
Add message serialization implementation
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis
b821bf4590
Initial commit
...
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago