-
Notifications
You must be signed in to change notification settings - Fork 102
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 missing zmq_proxy
method
#127
Comments
Originally I planned to add such a method. However currently I'm considering first implemeting this feature #112 . If we'll provide basic Stream/Sink implementation we could use https://docs.rs/futures/0.3.12/futures/stream/trait.StreamExt.html#method.forward method. I'll try to prioritize this features if they are important to you |
Thanks, mate! |
I've added a prototype implementation of proxy function. It looks like that using native Cause of this I've added a generic function with API similar to the one that zmq provides. @xpepermint , @TheButlah What do you think? |
Thanks, @Alexei-Kornienko for the PR. I appreciate your dedication and fast response. Yes, the proxy should work both ways and you won't be able to do this using the Stream object. The loop with select looks good to me, the interface supports all the required features so I guess this is it. You could just also add a test case for this new feature so we have it all covered. |
Consider to be closed for now. May come back to it later in case of any issues. |
Hey, I noticed there is no
Proxy
component available:The text was updated successfully, but these errors were encountered: