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

Documentation #194

Closed
wants to merge 49 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
baf0aa1
Add external utp4j fork as dependency
Eragoneq Mar 6, 2024
d34685e
Implement basic uTP connection
Eragoneq Mar 6, 2024
3d1d05f
Merge remote-tracking branch 'origin/master'
Eragoneq Mar 6, 2024
6c10b87
Merge branch 'Tribler:master' into master
Eragoneq Mar 6, 2024
e54a820
Update the debug screen
Eragoneq Mar 7, 2024
34f6b61
first commit
juul-j Mar 11, 2024
139a0da
Basic UI implemented
juul-j Mar 11, 2024
d771098
Add additional linear layouts to improve consistency
Eragoneq Mar 14, 2024
ea1dd81
Add code for file and IP selection
Eragoneq Mar 17, 2024
3389a6e
Remove Guava dependency and create custom listeners
Eragoneq Mar 17, 2024
04675e8
Fix hash calculation
Eragoneq Mar 17, 2024
a5f25d0
Allow for csv file transfer
Eragoneq Mar 17, 2024
4fffe9d
Implement fresh UTP endpoint into IPv8
Eragoneq Mar 18, 2024
d31fa33
1st fix of minor changes
juul-j Mar 19, 2024
46b41de
Update header on the app
CallumH2410 Mar 19, 2024
35e9084
fixed alignment
juul-j Mar 19, 2024
67bb004
Merge pull request #1 from Eragoneq/improveUI
Eragoneq Mar 19, 2024
6edd34e
Peer selection update
Eragoneq Mar 20, 2024
a337978
First version of a UI peer component. Only visuals implemented withou…
juul-j Mar 24, 2024
36d9348
add onclick listener and allow for creation of peer components dynami…
PieterCarton Mar 28, 2024
072181a
Switched send functionality to on click for each peer component.
juul-j Apr 1, 2024
d16d777
Made the different indicators, and implemented a foundation for peer …
juul-j Apr 1, 2024
44807b9
Foundation for peer status update somewhat in place.
juul-j Apr 1, 2024
9f4215c
add basic logging display to utp debug fragment
PieterCarton Apr 1, 2024
7e72c8c
fill in IP and first hash digits in peerComponent
PieterCarton Apr 1, 2024
f5fe415
merge with improveUI
PieterCarton Apr 1, 2024
3a3a7ff
Update .gitmodules
Eragoneq Apr 4, 2024
2c4ef47
Fix merge errors for the PR
CallumH2410 Apr 4, 2024
4060711
Update submodule on master to the open-port kotlin-ipv branch
CallumH2410 Apr 4, 2024
4eb147f
Update all to be working, minor front end changes
CallumH2410 Apr 4, 2024
351529d
Add channel for messages
Eragoneq Apr 6, 2024
0302c70
Change followed commit
Eragoneq Apr 6, 2024
586c414
update sendtolocalhost button to sent to estimatedLan and update logg…
PieterCarton Apr 6, 2024
0047d53
Allow for IPv8 file transfer
Eragoneq Apr 7, 2024
b7a779d
Change tracked submodule
Eragoneq Apr 7, 2024
c6e8517
Update submodule
Eragoneq Apr 7, 2024
3fedec9
Remove references to old endpoint
Eragoneq Apr 8, 2024
18ccb94
Add custom UTP community
Eragoneq Apr 8, 2024
4ae0cbe
Use custom UTP community
Eragoneq Apr 8, 2024
cc15b36
Merge pull request #4 from Eragoneq/ipv8_integration
Eragoneq Apr 8, 2024
6d41041
Added documentation.
juul-j Apr 14, 2024
954f433
Image view fix (test)
juul-j Apr 14, 2024
bf56c2f
Image view fix (test)
juul-j Apr 14, 2024
39d043c
Image view fix (test)
juul-j Apr 14, 2024
af08d6d
Fixed display of images.
juul-j Apr 14, 2024
2cc12bb
Change AppTutorial.md reference
Eragoneq Apr 14, 2024
2519a56
Added some details to the documentation.
juul-j Apr 15, 2024
7296bcf
Small doc addition
juul-j Apr 15, 2024
c34f0ed
Added hyperlink to benchmarking repo.
juul-j Apr 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switched send functionality to on click for each peer component.
juul-j committed Apr 1, 2024
commit 072181a4c7dbec44def2a220d1bda01d1500d5cd
Original file line number Diff line number Diff line change
@@ -31,6 +31,8 @@ class UtpTestFragment : BaseFragment(R.layout.fragment_utp_test) {

private val peers : MutableList<Peer> = mutableListOf()

private val viewToPeerMap: MutableMap<View, Peer> = mutableMapOf()

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)

@@ -41,6 +43,8 @@ class UtpTestFragment : BaseFragment(R.layout.fragment_utp_test) {
val layoutInflater: LayoutInflater = this.context?.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
val v: View = layoutInflater.inflate(R.layout.peer_component, null)

viewToPeerMap[v] = peer

binding.peerListLayout.addView(v, ViewGroup.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT
@@ -127,7 +131,16 @@ class UtpTestFragment : BaseFragment(R.layout.fragment_utp_test) {

for (peer in binding.peerListLayout.children.iterator()) {
peer.setOnClickListener {
println("click")
val address = viewToPeerMap[peer]?.address.toString().split(":")
if (address.size == 2) {
val ip = address[0]
val port = address[1].toIntOrNull() ?: MIN_PORT
lifecycleScope.launchWhenCreated {
sendTestData(ip, port)
}
}
println("sending data to peer $address")

}
}
}
7 changes: 0 additions & 7 deletions debug/src/main/res/layout/fragment_utp_test.xml
Original file line number Diff line number Diff line change
@@ -100,13 +100,6 @@
android:gravity="center_vertical"
android:padding="0dp">

<include
android:id="@+id/peerComponent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
layout="@layout/peer_component">
</include>

</LinearLayout>

<ScrollView
2 changes: 1 addition & 1 deletion debug/src/main/res/layout/peer_component.xml
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
android:textStyle="bold"/>

<TextView
android:id="@+id/peerID"
android:id="@+id/peerIP"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"