Commit Graph

205 Commits

Author SHA1 Message Date
parazyd
82ee1a9331 rpc: Clean up and document the server implementation. 2022-05-22 20:54:17 +02:00
ghassmo
0f8458373a rpc/rpcclient: minor changes 2022-05-21 05:54:14 +03:00
ghassmo
f20dd33cb8 net/transport: add timeout option for dial function 2022-05-20 00:47:37 +03:00
ghassmo
45382ecb74 rpc/rpcclient: catch the error when send to closed channel 2022-05-19 23:55:34 +03:00
ghassmo
e16204496b rpcclient: add close connection function 2022-05-13 11:47:49 +03:00
ghassmo
5cec2b98ff rpcclient: don't use Executor for spawn a task 2022-05-13 11:33:02 +03:00
ghassmo
94f37b764b rpcclient: handle error when lost connection with rpc server 2022-05-13 10:53:03 +03:00
ghassmo
28a837a733 rpc: use macro accept! for rpcserver 2022-05-13 07:37:36 +03:00
ghassmo
9f58f0aa21 rpc: remove boilerplate code in jsonrpc.rs and use macro & clean up 2022-05-13 07:21:08 +03:00
ghassmo
19f2c79ea7 rpc: create RpcClient for handling opened channels 2022-05-13 07:19:01 +03:00
ghassmo
1d6e92bf55 rpc: create function to open channels to feed rpc connection and keep the stream alive 2022-05-13 05:08:11 +03:00
ghassmo
54e7ee21bc net, rpc: cargo clippy clean up 2022-05-11 17:21:22 +02:00
ghassmo
47257c022e rpc: add support for unix socket 2022-05-11 17:21:22 +02:00
ghassmo
8287e0195f general clean up for network upgrade 2022-05-11 17:21:00 +02:00
ghassmo
ea9a993e9b net: add nym and unix to TransportName enum 2022-05-11 17:21:00 +02:00
ghassmo
f1c97207ba rpc: merge rpcserver2 to rpcserver & fix bins affected by the merging 2022-05-11 17:20:59 +02:00
ghassmo
ffee60228c rpc: WIP use new transport for rpcserver2 2022-05-11 17:20:59 +02:00
ghassmo
7fd0843200 rpc: use new network transport for jsonrpc 2022-05-11 17:20:59 +02:00
ghassmo
2a258cf509 rpc: extend buffer size 2022-05-08 18:26:26 +03:00
parazyd
a3829e76b3 Clean up global error module. 2022-04-23 21:21:14 +02:00
parazyd
a3ed95ab79 rpc: WIP network transports, and darkfid skeleton for further integration. 2022-04-11 18:44:46 +02:00
aggstam
bcf0975d82 jsonrpc: quick results handling 2022-03-28 19:59:40 +02:00
parazyd
a44ce744c5 rpc: Implement From for json-rpc enums.
Now instead of wrapping JsonResponse, JsonError, and JsonNotification,
we can just use into().
2022-03-18 11:05:19 +01:00
ghassmo
d66d56f268 rpc/jsonrpc: proper way to convert Url to SocketAddr 2022-03-09 20:11:15 +04:00
ghassmo
573b858e67 rpc/jsonrpc: minor change 2022-03-08 21:24:16 +04:00
ghassmo
59261f0d43 rpc/jsonrpc: finish the implementation for supporting tor and nym protocols on client side 2022-02-26 23:24:05 +04:00
ghassmo
7067f6314c rpc/jsonrpc: handle errors properly inside send_request function 2022-02-26 22:05:31 +04:00
ghassmo
a105813fb1 rpc/jsonrpc: WIP implement support for tor and nym protocols through socks5 2022-02-26 21:40:59 +04:00
ghassmo
d82ecbb6bc bin/darkfid: pass socks_url to send_request function 2022-02-26 20:14:05 +04:00
ghassmo
d6d629d44c rpc/jsonrpc: clean up send_request function 2022-02-26 19:54:42 +04:00
parazyd
85607c6bbd rpc/jsonrpc: Implement timeouts in send_request().
If the endpoint is connected, but does not reply on a request for a
defined amount of time, the send_request function shall fail with an
Io(TimedOut) error.
2022-02-23 13:44:29 +01:00
ghassmo
e3a68e334b rpc: pass Url object to send_request function instead of &str 2022-02-23 04:09:22 +04:00
parazyd
1c6a7c17a4 rpc/jsonrpc: Use parsed path for unix socket connection. 2022-01-18 15:17:36 +01:00
parazyd
1b55841418 rpc/jsonrpc: Transparently handle arbitrary protocols for requests. 2022-01-18 14:42:12 +01:00
parazyd
fa17139c6a Implement "rpc" feature. 2022-01-13 15:42:54 +01:00
parazyd
d29ab613c2 Refactor for util feature. 2022-01-13 15:42:54 +01:00
lunar-mining
88cf3114d8 moved /rpc to /util/rpc 2022-01-09 13:48:11 +01:00
Dastan-glitch
86ec332b71 Improve some error handling
PR (#45)
2022-01-05 08:46:20 +00:00
ghassmo
be1bdec8a2 darkfid: add the option to import keypair from json file 2022-01-05 02:51:19 +04:00
ghassmo
3edebe6b77 darkfid: implement set_default_address rpc function 2022-01-05 02:51:19 +04:00
ghassmo
02ec163fd6 darkfid: continue working on exporting keypair to external file 2022-01-05 02:51:19 +04:00
ghassmo
e247c4cf40 jsonrpc: add key_gen and get_keys errors 2022-01-02 23:42:04 +04:00
ghassmo
3ac5353d0a clean up 2022-01-01 06:40:44 +04:00
parazyd
ed2fdae2da bin: clippy lints. 2021-12-24 09:48:02 +01:00
Dastan-glitch
b398a41526 Formatting 2021-12-24 08:50:23 +01:00
Dastan-glitch
80ba9a2dca Error handling 2021-12-24 08:50:23 +01:00
lunar-mining
973dd67bd0 moved some debug! statements to info! 2021-12-14 20:41:51 +01:00
parazyd
81f95745f3 Apply some linting cleanups. 2021-11-28 10:13:29 +01:00
parazyd
2e33d98948 Reintroduce PR #15 2021-11-27 17:54:16 +01:00
parazyd
7276498e64 cargo fmt with new settings. 2021-11-27 17:02:29 +01:00