GithubHelp home page GithubHelp logo

mahmudur85 / iperf-jni Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 7.0 157 KB

An iperf3 android library

CMake 13.11% Kotlin 27.32% C++ 42.18% SWIG 17.39%
networking bandwidth speedtest android-library iperf3

iperf-jni's Introduction

Download

iPerf Android

An iPerf3 implementation for Android

Description

Iperf is a tool for network performance measurement and tuning. It is a cross-platform tool that can produce standardized performance measurements for any network. Iperf has client and server functionality, and can create data streams to measure the throughput between the two ends in one or both directions.

How to use

implementation "com.synaptic-tools:iperf:1.0.0"

Usages

Asynchronous implementation

Use IPerf.setCallback method to get the report asynchronously

val config = IPerfConfig(
    hostname = hostname,
    port = port.toInt(),
    stream = stream.path,
    download = true,
    json = false
)
IPerf.seCallBack {
    success { }
    update{ text -> }
    error { e -> }
}
IPerf.request(config)

Synchronous implementation

Get the response from IPerf.request(...) method

val result = IPerf.request(config)
when (result) {
    is IPerfResult.Success -> {
        println("$TAG iPerf request done ${resultBuilder.toString()}")
        ...
        ...
    }
    is IPerfResult.Error -> {
        println("$TAG iPerf request failed-> ${result.error}")
        ...
        ...
    }
}

iperf-jni's People

Contributors

kmrax avatar mahmudur85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iperf-jni's Issues

IndexOutOfBoundsException in Iperf Library

The library occasionally encounters an IndexOutOfBoundsException, signaling a problem with negative indices (such as Index -2).

Here's the exception that has been caught:
com.synaptictools.iperf.IPerfException: java.lang.IndexOutOfBoundsException: Index -2 out of bounds for length 0.

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.