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

Client / Server Support #8

Open
mmstick opened this issue Mar 7, 2019 · 2 comments
Open

Client / Server Support #8

mmstick opened this issue Mar 7, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@mmstick
Copy link

mmstick commented Mar 7, 2019

This could be useful in a wide range of applications, if it had the capability to act in a client / server manner.

For example, GTK provides a useful tool for debugging and manipulating GTK widget properties in any GTK application externally with the GTK Inspector. A similar capability could be offered by this and OrbTk.

Varlink could be used as a protocol for communicating messages back and forth between a pipe, UNIX socket, TCP socket, scheme, etc.

@da-x da-x added the enhancement New feature or request label Mar 17, 2019
@da-x
Copy link
Collaborator

da-x commented Mar 17, 2019

I agree, thanks for the suggestion!

Although this may require changes in API, it does not seem too difficult to implement.

@vi
Copy link

vi commented Apr 10, 2019

I expect it to be available over arbitrary std::io::Read + std::io::Write.

There can be something like

pub fn direct_with_io<H,IO>(settings: Settings, handler: H, io: IO) -> Result<(), PromptError> where
    H: Handler + Send + Sync + 'static, 
    IO: std::io::Read + std::io::Write + ...,

with direct just delegating to it with a stdio-based IO.

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

No branches or pull requests

3 participants