datl4g / klient2klient Goto Github PK
View Code? Open in Web Editor NEWDiscover devices in your network and create a connection between them to send data
License: Apache License 2.0
Discover devices in your network and create a connection between them to send data
License: Apache License 2.0
While implementing this library as a way of transfering data between my desktop and android application (written using Kotlin Multiplatform).
The desktop application finds itself and the android application. The android application on the otherhand is only able to find itself and not the desktop application. NOTE: when using an actual android device instead of emulator, the desktop CANT find it...
I don't know exactly how the discovery process works. From what I can tell it uses Broadcasting, but that doesn't explain as to why the desktop application can find the Android application but it doesn't work the other way around...
I'm using all permissions in the AndroidManifest of this stackoverflow article. I also have tried using a MulticastLock which doesn't seem to affect anything
Extra information that might be helpful:
My Discovery Builder:
private val discover = Discovery.Builder(CoroutineScope(Dispatchers.IO))
.setPort(34340)
.setPing(1000L)
.setDiscoveryTimeout(60000L)
.setDiscoveryTimeoutListener {
println("Discovery timeout")
scope.cancel() //cancels another scope that is running (has nothing to do with the package directly)
}
.setDiscoverableTimeout(60000L)
.setDiscoverableTimeoutListener {
println("Discoverable timeout")
}
.build()
I don't know if this is an issue with the package directly, or the documentation or just Android in general...
I should state that the main goal is to sync my applications across devices on the same network
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.