{"id":19900092,"url":"https://github.com/m-lab/ndt7-client-cc","last_synced_at":"2026-02-15T02:01:40.257Z","repository":{"id":212537181,"uuid":"731354554","full_name":"m-lab/ndt7-client-cc","owner":"m-lab","description":"Experimental ndt7 client engine written in C++11","archived":false,"fork":false,"pushed_at":"2024-03-14T13:05:04.000Z","size":2769,"stargazers_count":1,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-24T00:30:08.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null}},"created_at":"2023-12-13T22:32:43.000Z","updated_at":"2024-04-03T07:06:41.000Z","dependencies_parsed_at":"2024-02-28T04:27:32.114Z","dependency_job_id":"c7f6db3d-3161-4c8e-ab23-80485153e7ea","html_url":"https://github.com/m-lab/ndt7-client-cc","commit_stats":{"total_commits":351,"total_committers":5,"mean_commits":70.2,"dds":"0.20512820512820518","last_synced_commit":"4a371cceaaddd26f595359f811d878c8fa71a2ca"},"previous_names":["m-lab/ndt7-client-cc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m-lab/ndt7-client-cc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fndt7-client-cc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fndt7-client-cc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fndt7-client-cc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fndt7-client-cc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-lab","download_url":"https://codeload.github.com/m-lab/ndt7-client-cc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fndt7-client-cc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29465397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T20:11:08.338Z","updated_at":"2026-02-15T02:01:40.240Z","avatar_url":"https://github.com/m-lab.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NDT7 Library and Command line Client\n\n[![GitHub license](https://img.shields.io/github/license/m-lab/ndt7-client-cc.svg)](https://raw.githubusercontent.com/m-lab/ndt7-client-cc/main/LICENSE) [![Github Releases](https://img.shields.io/github/release/m-lab/ndt7-client-cc.svg)](https://github.com/m-lab/ndt7-client-cc/releases) [![Build Status](https://app.travis-ci.com/m-lab/ndt7-client-cc.svg?branch=main)](https://app.travis-ci.com/m-lab/ndt7-client-cc) [![codecov](https://codecov.io/gh/m-lab/ndt7-client-cc/branch/main/graph/badge.svg)](https://codecov.io/gh/m-lab/ndt7-client-cc)\n\n**Note**: This project is community supported and provided as-is for users and\nclient integrators. Contributions are welcome (PRs and issues).\n\nndt7-client-cc is a [Network-Diagnostic-Tool](\nhttps://github.com/ndt-project/ndt/wiki/NDTProtocol) (NDT) single-include C++11\nclient library and command line client. NDT is a widely used network performance\ntest that measures the download and upload speed, and complements these\nmeasurements with kernel-level measurements. NDT is the most popular network\nperformance test hosted by [Measurement Lab](https://www.measurementlab.net/).\n\nThis library implements the ndt7 protocol. The libndt7 code should be considered\nan alpha release.\n\nWe forked this library from [measurement-kit/libndt@6a9040c21fc](\nhttps://github.com/measurement-kit/libndt/commit/6a9040c21fcf43a40eb8e0d139be0d6b2a493b0a).\n\n## Getting started\n\nlibndt7 depends on OpenSSL (for TLS support and in the future for WebSocket\nsupport) and cURL (to autodiscover servers).\n\nDownload [single_include/libndt7.hpp](\nhttps://github.com/m-lab/ndt7-client-cc/blob/main/single_include/libndt7.hpp) and\nput it in the current working directory.\n\nThis example runs a download-only ndt7 test with a nearby, healthy server.\nCreate a file named `main.cpp` with this content:\n\n```C++\n#include \"libndt7.hpp\"\n\nint main() {\n  using namespace measurementlab;\n  libndt7::Settings settings;\n  std::unique_ptr\u003clibndt7::Client\u003e  client;\n  settings.metadata[\"client_name\"] = CLIENT_NAME;\n  settings.metadata[\"client_version\"] = CLIENT_VERSION;\n  client.reset(new libndt7::Client{settings});\n  client-\u003erun();\n}\n```\n\nCompile your client with a unique name using:\n\n```sh\ng++ -std=c++11 -Wall -Wextra -I. \\\n  -DCLIENT_NAME=\\\"my-ndt7-client\\\" \\\n  -DCLIENT_VERSION=\\\"v0.1.0\\\" \\\n  -o main main.cpp\n```\n\nFor API documentation, see\n[include/libndt7/libndt7.hpp](include/libndt7/libndt7.hpp) for the full API.\n\nSee [ndt7-client-cc.cpp](ndt7-client-cc.cpp) for a comprehensive, reference client.\n\n## Cloning the repository\n\nTo develop libndt7 or run tests, you need a clone of the repository.\n\n```sh\ngit clone https://github.com/m-lab/ndt7-client-cc\n```\n\n## Building and testing\n\nBuild and run tests with:\n\n```sh\ncmake .\ncmake --build .\nctest -a --output-on-failure .\n```\n\n## Install artifacts\n\nBy default the reference client (`ndt7-client-cc`) and the single include\nlibndt7.hpp are installed to system a default location like `/usr/local/`.\n\n```sh\n$ cmake --install .\n-- Install configuration: \"\"\n-- Installing: /usr/local/bin/ndt7-client-cc\n-- Installing: /usr/local/include/libndt7/libndt7.hpp\n```\n\nYou may specify an alternate prefix.\n\n```sh\ncmake --install . --prefix /my/install/prefix\n```\n\n## Command line client\n\nBuilding with CMake also builds a simple command line client. Get usage info\nby running:\n\n```sh\n./ndt7-client-cc -help\n```\n\n## Updating dependencies\n\nVendored dependencies are in `third_party`. We include the complete path to\nwhere they can be found such that updating is obvious.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fndt7-client-cc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-lab%2Fndt7-client-cc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fndt7-client-cc/lists"}