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

Using CommsInterface.GetAllInterfacesAsync() to use with StartListeningAsync() #156

Open
melucas opened this issue Jan 24, 2019 · 0 comments

Comments

@melucas
Copy link

melucas commented Jan 24, 2019

Hello,

In my Xamarin forms project in a view model, I can successfully find the first connected network interface using CommsInterface.GetAllInterfacesAsync() (as per the example in the readme file).

When I pass the interface object to the UdpSocketReceiver StartListeningAsync(port, ni), the connection does not fire the MessageReceived event. If the network interface object is null, or StartListeningAsync is called with just the port number, the MessageReceived event fires with the received data from the UDP Server.

I would like to be able to tell the UdpSocketReceiver which network interface to listen on because the server will always be on a WiFi connection. There is no need to listen to the mobile network.

Any idea how to make this work?

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

1 participant