NativeScript / NativeScript/ios
interop.Reference() issues
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 150
- Fork
- 43
- Merge medio
- 3g 10h
- PR unite (30g)
- 22
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo l’esempio interop.Reference(sockaddr_in, socketData.bytes) dell’issue e verifica come viene esposto il Pointer restituito. Non viene indicato alcun file o test del repository; il lavoro è completato quando i campi di sockaddr_in, incluso sin_family, sono accessibili nel runtime NS7 e il caso d’uso dell’indirizzo IP segnalato funziona.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ios, javascript
- Ambito
- mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100