skywalker-nick / iperf_go

Golang wrapper for iperf3 API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iperf_go: A Golang wrapper for iperf3 API

" iperf is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning of various parameters related to timing, protocols, and buffers. For each test it reports the measured throughput / bitrate, loss, and other parameters. "

I do not develop Iperf. For more information see the : https://software.es.net/iperf

Requirements

You first need to install the iperf3 library available on the ENSET Github. I advise you to build it as it is described in the repo. If you have not installed the library, the Go compiler will not find #cgo LDFLAGS: -liperf

Installation

Just run

$ go get github.com/lthomasmp/iperf_go

Running

To test the wrapper, just run the example. This example use your local IP address.

$ cd examples
$ go build ClientServerExample.go
$ ./ClientServerExample <your_port>

About

Golang wrapper for iperf3 API


Languages

Language:Go 100.0%