61 Commits (6992b7fa67a70c41d3ea05e9bc8aefe4826b7f8d)
 

Author SHA1 Message Date
Trivernis 6992b7fa67
Merge pull request #2 from Trivernis/develop
Fix event redirect handling
4 years ago
trivernis 19c1cdb649
Fix event redirect handling
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis f9988b62c1
Increment version
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
Trivernis 31a5c06833
Merge pull request #1 from Trivernis/develop
Develop
4 years ago
trivernis 47e7894860
Add retries to emit
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis e62e841d47
Add copyright to source files
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis f4462356f6
Add Send + Sync for VentedError
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 5e603887d2
Add backpressure to listener and parallel event handling
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 984c1308f9
Make timeouts configurable
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 392355e151
Remove read timeout that causes connection failures
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis a90f1b5664
Remove nonblocking instruction
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 9a1c1df91d
Improve stream read write error handling
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis e59e26c72f
Fix blocked receiver thread
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 f5932aa45e
Change thread start behaviour
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 d3d6d0baaf
Change emit to return an async value
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis a2bed2074a
Change thread pool to executor pools
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis b56bf4c6db
Expose inner node list
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 401bd11821
Remove request_node_list fn
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 64203e5cac
Rename Future to AsyncValue and expose it
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 52f9cc1cd1
Change emit to be synchronous to avoid too many threads
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 9a556309e4
Add check if node is known for redirect events
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 6a2f24945d
Change update to not add self to node list
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 833dd1a47b
Expose fields of node list item
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis a8900d5246
Expose node list event
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis eec5e698d3
Change event handling to return multiple events
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 0ee8d691c7
Add support for node list synchronization
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 68729d8dd2
Change nonce type to u128 for cross-platform compatibility
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 9da5931435
Fix memory leak for real
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis ac81f69209
Fix memory leak
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 12d17f09c9
Add event redirection via proxy nodes
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 32f15a2c89
Refactor connection function
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 2c05e2736f
Fix broken streams not being removed from pool
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 5e659509dd
Expose node_id and known nodes of server via function
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis ecc3fcb204
Add names to pool threads
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 394e2bb68e
Add secret updating after key exchange
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 34a1fd2cf0
Add version comparison on connect
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 118633179f
Reexport PublicKey type
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis f34ad33322
Add crate metadata
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 6f6142982b
Change auth to two-sided encrypted authentication
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis da6cd1faaf
Update README
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis ce423d5c3d
Add key based authentication
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 99efe4d587
Add event emitting to server
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 bcc3024fc3
Add tls server implementation
Signed-off-by: trivernis <trivernis@protonmail.com>
4 years ago
trivernis 5fd7cc8975
Merge branch 'main' of github.com:Trivernis/vented into main 4 years ago