Code Monkey home page Code Monkey logo

k2k's Introduction

k2k

Rewrite of https://github.com/DATL4G/Klient2Klient using ktor. Experimenting with udp socket connections and packet transfer.

desk module: Example desktop app droid module: Example android app ios module: Example ios app k2k module: Main peer to peer library presenter module: Share presenter/vm logic for example apps.

Start Desktop app and Android app. Click 'start' on in the app to start discovery. Once you see the peer you want to connect to listed in both apps, click on the peer in the list to start a connection and transfer of data.

ios runs and is discoverable on desktop and android, but the hosts flow in DiscoveryServer doesn't seem to get updated and therefore can't populate the UI with found peers.

Seeing 'Address already in use' exceptions pretty often when stopping and restarting. ios also seems to crash if the desktop app starts discovery first. maybe from https://youtrack.jetbrains.com/issue/KTOR-6489/Sending-UDP-packets-crashes-Kotlin-Native-for-MacOS-iOS

To build for ios, run the build_pods.sh script or the commands therein.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.