-
Notifications
You must be signed in to change notification settings - Fork 16
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
How to use this library? #10
Comments
Hi friend, thank you for using anet library. |
If you need any help, please feel free to let me know. |
do you mean I need to replace I tried to make a single file for mobile test as following
I build it with
I wish the call to
|
Sorry, the current anet library only guarantees that the correct result is obtained when executing anet.Interfaces(), and does not synchronize the correct result to the standard library using the //go:linkname tag. If many people have such a need, should we consider doing this? However, this is a bit invasive to Go code and does not seem to be a good solution. |
I see, that explains. Again, thanks a lot for your great work! |
@wlynxg oh I've just discovered your ticket in the go-libp2p repo. I'm using that lib as well. Would you mind sharing with me how you made go-libp2p work using this anet lib? |
I'm very sorry, I was busy looking for a job during this period and couldn't reply to you in time. |
hi @wlynxg
Thank you very much for creating this lib. I am using another 3rd lib which internally uses
net.Interfaces()
and as expected it fails on android. I couldn't change source code of that lib to use youranet.Interfaces()
. How can I use this lib to work around the issue? I'm very new to golang, kind of couple weeks of experiences. I read and try to understand how//go:linkname
could help in this case. I vaguely imagine//go:linkname
will help link/replace the go internal implementation with yours. However, I couldn't make it work.The text was updated successfully, but these errors were encountered: