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

ZeroMQException(22): EINVAL when setting the SUB socket option. #42

Open
Beaverking opened this issue Oct 2, 2024 · 2 comments
Open

Comments

@Beaverking
Copy link

I have the SUB socket:
subscribeSocket = m_context.createSocket(SocketType.sub);
I then try to set the "conflate" option to it:
subscribeSocket.setOption(ZMQ_CONFLATE, "1");
But I get this exception:

ZeroMQException(22): EINVAL

0      _checkErrorCode (package:dartzmq/src/exception.dart:56:5) exception.dart:56
#1      _checkReturnCode (package:dartzmq/src/exception.dart:49:5) exception.dart:49
#2      ZBaseSocket.setOption (package:dartzmq/src/socket.dart:244:5) socket.dart:24

Some other functions in the socket.dart specify that I should use the Z85 encoding for the input string. Is it also the case here?
This is on Android BTW.

@enwi
Copy link
Owner

enwi commented Oct 11, 2024

It seems that the value (string) is not expected here. Looking at the documentation a boolean is expected. We might need a different way of handling this.

enwi added a commit that referenced this issue Oct 11, 2024
@enwi
Copy link
Owner

enwi commented Oct 11, 2024

@Beaverking can you try the latest dev branch?

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