You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thomas Schwotzer edited this page Aug 30, 2021
·
1 revision
SharkPeersharkPeer ...; // see previous sectionssharkPeer.putExtra("example_key", "exampleData".getBytes());
byte[] data = sharkPeer.getExtra("example_key");
This concept does not require any further detailed explanations. Arbitrary byte arrays can be stored with a key with this SharkPeer.
Comparision
Two peer can be compared by calling samePeer(). It returns true if both peer have the same ID. This functions only works if an ASAPPeer instance is set.