NativeScript / NativeScript/ios
interop.Reference() issues
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 150
- フォーク
- 43
- 平均マージ
- 3日 10時間
- マージ済み PR(30日)
- 22
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue にある interop.Reference(sockaddr_in, socketData.bytes) の例を再現し、返された Pointer がどのように公開されるかを確認します。リポジトリのファイルやテストは指定されていません。sockaddr_in のフィールド(sin_family を含む)に NS7 ランタイムからアクセスでき、報告されている IP アドレスのユースケースが動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, javascript
- 領域
- mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100