{"id":31103588,"url":"https://github.com/adriensalon/natp2p","last_synced_at":"2025-09-17T02:07:05.724Z","repository":{"id":313616492,"uuid":"1049060704","full_name":"adriensalon/natp2p","owner":"adriensalon","description":"Discovery and management of NAT-traversing host endpoints","archived":false,"fork":false,"pushed_at":"2025-09-07T09:30:30.000Z","size":871,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-07T11:31:34.722Z","etag":null,"topics":["cpp17","network"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adriensalon.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":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-02T12:35:26.000Z","updated_at":"2025-09-07T09:35:39.000Z","dependencies_parsed_at":"2025-09-07T11:41:47.686Z","dependency_job_id":null,"html_url":"https://github.com/adriensalon/natp2p","commit_stats":null,"previous_names":["adriensalon/natp2p"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/adriensalon/natp2p","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriensalon%2Fnatp2p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriensalon%2Fnatp2p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriensalon%2Fnatp2p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriensalon%2Fnatp2p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adriensalon","download_url":"https://codeload.github.com/adriensalon/natp2p/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriensalon%2Fnatp2p/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275521497,"owners_count":25479612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"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":["cpp17","network"],"created_at":"2025-09-17T02:07:03.296Z","updated_at":"2025-09-17T02:07:05.714Z","avatar_url":"https://github.com/adriensalon.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# natp2p\n\nProvides functionnality for discovering and managing NAT-traversing host endpoints as RAII `natp2p::endpoint_lease` data structures to use in P2P applications that don't rely on public relays/STUN/TURN/ICE servers. Documentation for the data structures can be found in the [natp2p/natp2p.hpp](include/natp2p/natp2p.hpp) header.\n\nDiscovery searches for:\n- Global IPv6 endpoints that can be directly reached from clients\n- NAT-PMP IPv4 mapped endpoints implemented with [libnatpmp](https://github.com/miniupnp/libnatpmp)\n- UPnP IGD IPv4 mapped endpoints implemented with [miniupnp](https://github.com/miniupnp/miniupnp)\n- LAN IPv4 endpoints to be reached from clients on the local network\n\n### Usage\n\nUse `std::vector\u003cendpoint_lease\u003e natp2p::acquire_endpoints(const std::uint16_t local_port, const transport_protocol protocol)` to acquire endpoints for the requested local port. Mapped addresses can use or not the same port.\n\nSelected transport protocol that can be either `natp2p::transport_protocol::udp` or `natp2p::transport_protocol::tcp`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriensalon%2Fnatp2p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadriensalon%2Fnatp2p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriensalon%2Fnatp2p/lists"}