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
Is your feature request related to a problem? Please describe. Cannot make full use of m_search() in async context.
m_search()
Describe the solution you'd like Add a async_m_search() that handles async responses.
async_m_search()
Describe alternatives you've considered Due to [x for x in self.recv()] waits until all responses are collected, I consider:
[x for x in self.recv()]
async def async_m_search(self, st="ssdp:all", mx=1): host = "{}:{}".format(self.broadcast_ip, self.port) data = create_msearch_payload(host, st, mx) self.send(data) for response in self.recv(): try: headers = parse_headers(response) yield headers except ValueError: pass
Additional context None. Thanks.
The text was updated successfully, but these errors were encountered:
Made an implementation #103
Sorry, something went wrong.
MoshiBin
No branches or pull requests
Is your feature request related to a problem? Please describe.
Cannot make full use of
m_search()
in async context.Describe the solution you'd like
Add a
async_m_search()
that handles async responses.Describe alternatives you've considered
Due to
[x for x in self.recv()]
waits until all responses are collected, I consider:Additional context
None. Thanks.
The text was updated successfully, but these errors were encountered: