We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to get an event. nanomsg , nanomsg/nng#786, tells me use recv_fd for other event loop, if you had one, I test like this:
addr = 'tcp://localhost:31310' self.nng = pynng.Bus0(listen=addr, recv_buffer_size=None) self.selector = selectors.SelectSelector() self.selector.register( self.nng.recv_fd, selectors.EVENT_READ | selectors.EVENT_WRITE)
I send like this:
addr = 'tcp://localhost:31310' with pynng.Bus0(dial=addr) as s1: print('client') s1.send_msg(Message(b'hello'))
but the event loop, self.selector.select(1), report nothing. what happend? How can I use my event loop?
self.selector.select(1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to get an event. nanomsg , nanomsg/nng#786, tells me use recv_fd for other event loop, if you had one, I test like this:
I send like this:
but the event loop,
self.selector.select(1)
, report nothing. what happend? How can I use my event loop?The text was updated successfully, but these errors were encountered: