-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Reading DatagramSocket in the background #958
Comments
The DatagramSocket class doesn't have an InputStream property; it follows an event-based model for incoming I/O (see MessageReceived). Your background task should do something similar to what is being suggested in this stackoverflow post:
|
Thank you. It worked as you said. |
Note also that this is not a question about a sample in this repo. For general developer support, please use http://aka.ms/storesupport |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to read a DatagramSocket in the background.
Quoting from https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/DatagramSocket :
Starting with something like ...
I would think that there is InputStream object in socket just like there is an OutputStream, but I don't find anything that seems to let me read. What am I missing and how do I read the socket in the background?
The text was updated successfully, but these errors were encountered: