igorskh / iperf-swift

An easy to use Swift wrapper for iPerf3
6 stars 5 forks source link

How to get bidirectional throughput using this library. #9

Open Rohit737-star opened 6 months ago

Rohit737-star commented 6 months ago

I need to implement bidirectional throughput in my project .

in this demo extension only two functionality added->

var directionOptions: [IperfDirection] = [.download, .upload]

can you explain how to implement bidirectional throughput. Thanks

igorskh commented 6 months ago

There is a configuration option in iPerf for biderctional test https://github.com/igorskh/iperf-swift/blob/58ec13d17ff2743b66032dd528cdb50927df8634/Sources/IperfCLib/include/iperf_api.h#L175

I did not implement it in this Swift interface.

You can try implementing it simirarly to other parameters here https://github.com/igorskh/iperf-swift/blob/58ec13d17ff2743b66032dd528cdb50927df8634/Sources/IperfSwift/IperfRunner.swift#L115

Otherwise I can have a look later and try to implement it, but I can give you any time estimation.

Rohit737-star commented 5 months ago

Thanks for reply.

Can you update the library after done bidirectional functionality. in my swift project bidirectional functionality is require. i have implemented downlink and uplink very well. so i don't want to switch other library. if you want to help in modify library i can contribute. thanks

igorskh commented 2 months ago

Branch https://github.com/igorskh/iperf-swift/tree/feature-bidirectional contains ongoing development for bidirectional test. The test itself is working, I'm trying to figure out how to fix reporting for bidirectional tests. Reporting should be rewritten like here: https://github.com/igorskh/iperf-swift/blob/58ec13d17ff2743b66032dd528cdb50927df8634/Sources/IperfCLib/iperf_api.c#L2967