Yes, I really like JVM languages.
Check my programming language Marcel
You can also visit my website exposing my main (and published) projects at https://tambapps-portfolio.herokuapp.com
Peer to peer project to share files between two devices on a same local network
License: GNU General Public License v3.0
Yes, I really like JVM languages.
Check my programming language Marcel
You can also visit my website exposing my main (and published) projects at https://tambapps-portfolio.herokuapp.com
Can not build the project, the lib is missing.
Thanks!
Hello,
There are some files that are missing in this project. File named "FileData" and "SendingFileData" that is supposed to be located in "model" package.
When running code on android studio the line below has some error
def admobProperties = new Properties()
admobProperties.load(new FileInputStream(rootProject.file("admob.properties")))
Heya,
I am building an application on top of your peer-to-peer app on android and noticed that, if I disable wifi on my phone while it's looking for a connection, it displays the "Transfer completed" notification.
I fixed it by going into
p2p_library/src/main/kotlin/com/tambapps/p2p/fandem/task/SendingTask.kt
and adding
super.cancel()
in the catch-clause in send()
:
@Throws(IOException::class)
fun send(fis: InputStream?, fileName: String,
fileSize: Long) {
try {
createServerSocket(fileName).use { serverSocket ->
serverSocket.accept().use { socket ->
transferListener?.onConnected(peer, Peer.of(socket), fileName, fileSize)
CustomDataOutputStream(socket.getOutputStream()).use { dos ->
dos.writeLong(fileSize)
dos.writeInt(bufferSize)
dos.writeString(fileName)
share(bufferSize, fis!!, dos, fileSize)
}
}
}
} catch (e: SocketException) { //socket closed because of cancel()
super.cancel() // this one right here
}
}
Not sure if that is a fix or more like a workaround though...
Either way, I'm gonna take the opportunity to say thank you for this project, it's extremely useful!
Hello,
appretiate the work and effort in this project.
however I run it I noticed that PeerSniffer Class is not there therefore it throughs some errors.
can you share that please.
thank you
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.