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

interop.Reference() issues #103

Open
matty0005 opened this issue Feb 3, 2021 · 0 comments
Open

interop.Reference() issues #103

matty0005 opened this issue Feb 3, 2021 · 0 comments

Comments

@matty0005
Copy link

I'm in the process of updating a copy of 'nativescript-zeroconf' plugin for NS7, and long story short, i can't acquire IP addresses. After some digging around, i found that this line was the root of my issues:

let socket_address = new interop.Reference(sockaddr_in, socketData.bytes).value;
console.log(socket_address); // <Pointer: 0x6000033c8350>

This line of code used to work in NS6 with the old runtime, but now it just seems to return the pointer without been able to access any properties of the pointer.

eg, this used to work in NS6 returned 2 (AF_INET), but now returns undefined:

console.log(socket_address.sin_family) // undefined
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