Proper use of Proxy

34 views
Skip to first unread message

Radek Hladík

unread,
Oct 8, 2020, 2:34:10 AM10/8/20
to netmq-dev
Hi, I have a few questions about Proxy.
I have a client-side socket that I would like to share between Tasks(threads).
Now I solve this by doing a Task in the main thread, which creates two sockets: Dealer - connects to the server, Router - binds with an inproc address and then creates a Proxy with these two sockets and starts it.
Other Tasks that need to communicate with the server are then connected to the Router socket via inproc.

1.) Is such use correct?
2.) Is there a non-blocking Proxy? If I leave it in the main thread it is blocked.
3.) What is it good to connect to a Proxy Poller?

If any of my questions are stupid, I'm sorry. I'm just learning to work with NetMQ and I don't understand enough things yet.
Reply all
Reply to author
Forward
0 new messages