-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client-daemon communication via gRPC #62
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sophon96 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ayo! thanks!
This looks great! |
let addr = "0.0.0.0:5768".parse()?; | ||
let cd_svc = client_server::ClientDaemonService {}; | ||
let cd_srv = ClientDaemonServer::new(cd_svc); | ||
println!("Client gRPC server on {}", addr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you implement the connection here, is it work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- working
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! If you run it, you can use a gRPC client like BloomRPC and import proto/client_daemon.proto
and fire off RPC calls, though all of them are just blank for now.
That was fast! Let me draft out a few tasks that need to be done before this can be merged... |
Cool cool, great work! |
This reverts commit af1edae.
…am in daemon Signed-off-by: Sophon96 <[email protected]>
Signed-off-by: Sophon96 <[email protected]>
Signed-off-by: Sophon96 <[email protected]>
Signed-off-by: Sophon96 <[email protected]>
This PR only aims to implement communication between the client and the daemon.
Proto
Daemon
Client