{"id":18893396,"url":"https://github.com/xtaci/lossyconn","last_synced_at":"2025-04-15T00:31:43.436Z","repository":{"id":57482928,"uuid":"185327722","full_name":"xtaci/lossyconn","owner":"xtaci","description":"lossy connection simulator","archived":false,"fork":false,"pushed_at":"2020-02-09T14:51:46.000Z","size":33,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T12:51:12.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/xtaci.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}},"created_at":"2019-05-07T05:36:28.000Z","updated_at":"2025-02-20T07:30:20.000Z","dependencies_parsed_at":"2022-09-03T09:51:30.191Z","dependency_job_id":null,"html_url":"https://github.com/xtaci/lossyconn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtaci%2Flossyconn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtaci%2Flossyconn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtaci%2Flossyconn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtaci%2Flossyconn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtaci","download_url":"https://codeload.github.com/xtaci/lossyconn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248984324,"owners_count":21193726,"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","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-08T08:13:30.341Z","updated_at":"2025-04-15T00:31:43.123Z","avatar_url":"https://github.com/xtaci.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lossy connection simulator\n\n[![GoDoc][1]][2] [![MIT licensed][11]][12] [![Build Status][3]][4] [![Go Report Card][5]][6] [![Coverage Statusd][7]][8]\n\n[1]: https://godoc.org/github.com/xtaci/lossyconn?status.svg\n[2]: https://godoc.org/github.com/xtaci/lossyconn\n[3]: https://travis-ci.org/xtaci/lossyconn.svg?branch=master\n[4]: https://travis-ci.org/xtaci/lossyconn\n[5]: https://goreportcard.com/badge/github.com/xtaci/lossyconn\n[6]: https://goreportcard.com/report/github.com/xtaci/lossyconn\n[7]: https://codecov.io/gh/xtaci/lossyconn/branch/master/graph/badge.svg\n[8]: https://codecov.io/gh/xtaci/lossyconn\n[11]: https://img.shields.io/badge/license-MIT-blue.svg\n[12]: LICENSE\n\nPackage lossyconn is a lossy connection simulator for Golang.\n\nlossyconn provides packet oriented lossy connection for testing purpose\n\n```\n\tleft, err := NewLossyPacketConn(0.3, 200)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tright, err := NewLossyPacketConn(0.2, 180)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tp := make([]byte, 1024)\n\tleft.WriteTo(p, right.LocalAddr())\n\tright.ReadFrom(p)\n\n\tleft.Close()\n\tright.Close()\n\tt.Logf(\"left:%v\\n\", left)\n\tt.Logf(\"right:%v\\n\", right)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtaci%2Flossyconn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtaci%2Flossyconn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtaci%2Flossyconn/lists"}