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

x/mobile: net.DialUDP doesn't work on Android #13313

Closed
ghost opened this issue Nov 18, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@ghost
Copy link

commented Nov 18, 2015

For example, I have:

Conn, _ := net.DialUDP("udp", LocalAddr, ServerAddr)

Then any action on Conn will crash the app, e.g. Conn.Close()

I tested this on Samsung Galaxy S3 with Android 4.1.1 and Note 5 with Android 5.1.1. Only native Go is used.

@bradfitz

This comment has been minimized.

Copy link
Member

commented Nov 18, 2015

You're ignoring the error value. Look at the error to see the reason.

For future questions, see https://golang.org/wiki/Questions

@bradfitz bradfitz closed this Nov 18, 2015

@golang golang locked and limited conversation to collaborators Nov 17, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.