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

Support for ZMQ.DISH and ZMQ.RADIO Sockets in jeromq #1000

Open
thstasy opened this issue Sep 27, 2024 · 4 comments
Open

Support for ZMQ.DISH and ZMQ.RADIO Sockets in jeromq #1000

thstasy opened this issue Sep 27, 2024 · 4 comments

Comments

@thstasy
Copy link

thstasy commented Sep 27, 2024

Hello jeromq Developers,

I am working on a project that requires ZeroMQ's UDP socket types (ZMQ.DISH and ZMQ.RADIO). While I see that these sockets are supported in the C++ version of ZeroMQ (introduced in version 4.2), I am encountering a compilation error in Java when attempting to use ZMQ.DISH.

The error message is as follows:
[ERROR] /path/to/ZmqTmDataLink.java:[19,39] cannot find symbol [ERROR] symbol: variable DISH [ERROR] location: class org.zeromq.ZMQ

I've updated to the latest version of jeromq, but the issue persists, suggesting that jeromq may not yet support these UDP-based socket types.

Could you please confirm whether ZMQ.DISH and ZMQ.RADIO are currently supported in jeromq? If not, is there any plan to include support for these socket types in future releases? Additionally, is there any recommended workaround for using ZeroMQ over UDP in Java?

Thank you for your assistance!

Best regards,
Tsai-Hsuan Stasy Hsieh

@fbacchella
Copy link
Contributor

Can you show the offending line ? UDP is indeed not supported, but RADIO/DISH is: https://github.com/zeromq/jeromq/tree/master/jeromq-core/src/main/java/zmq/socket/radiodish

@thstasy
Copy link
Author

thstasy commented Sep 27, 2024 via email

@thstasy
Copy link
Author

thstasy commented Sep 30, 2024

Hi,

Thank you for your prompt response!

Here is the offending line(underlined in blue), and the error message log screenshots:
Screenshot from 2024-09-30 11-41-13
Screenshot from 2024-09-30 11-43-40
And I guess I have already updated jeromq version to the latest ones, correct me if I am wrong:
Screenshot from 2024-09-30 12-24-47

@fbacchella
Copy link
Contributor

Screenshoots are not very usefull to search for text.

If you look at the source code: https://github.com/zeromq/jeromq/blob/master/jeromq-core/src/main/java/org/zeromq/ZMQ.java


You can have a look at https://github.com/zeromq/jeromq/blob/master/jeromq-core/src/main/java/org/zeromq/SocketType.java.
// Socket types, used when creating a Socket. Note that all of the int types here is
// deprecated, use SocketType instead

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

2 participants