Skip to content
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

Add a server mode for pdblister #7

Open
DrChat opened this issue Oct 14, 2022 · 0 comments
Open

Add a server mode for pdblister #7

DrChat opened this issue Oct 14, 2022 · 0 comments

Comments

@DrChat
Copy link
Member

DrChat commented Oct 14, 2022

We should investigate the usefulness of adding a server mode to pdblister, such that we will listen for JSON requests on stdin and respond to them on stdout.

For example, someone could request that we download a PDB (or return an existing one) via the following flow (-->: stdin, <--: stdout):

--> {"id": 0, "req": "download", "type": "pdb", "name": "abc.pdb", "hash": "ABC123456789", "age": 0}
<-- {"id": 0, "req": "progress", "percent": 50}
<-- {"id": 0, "req": "progress", "percent": 90}
<-- {"id": 0, "req": "download", "status": "success", "path": "C:\Symbols\abc.pdb\ABC123456789\abc.pdb"}

This would make pdblister a useful tool for non-Rust languages as well, since any language can launch a program and speak JSON.
This will also allow me to lazily sidestep having to do a non-async implementation for Rust libraries that wish to maintain a minimal build profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant