{"id":20817878,"url":"https://github.com/vforteli/flexinets.net.udpclient","last_synced_at":"2025-10-28T06:40:05.115Z","repository":{"id":144187211,"uuid":"125755628","full_name":"vforteli/Flexinets.Net.UdpClient","owner":"vforteli","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-20T09:11:12.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T23:25:37.188Z","etag":null,"topics":["mock","netstandard","testing","udp-client"],"latest_commit_sha":null,"homepage":null,"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/vforteli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2018-03-18T18:33:20.000Z","updated_at":"2021-08-12T01:00:14.000Z","dependencies_parsed_at":"2023-07-06T16:31:44.569Z","dependency_job_id":null,"html_url":"https://github.com/vforteli/Flexinets.Net.UdpClient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vforteli/Flexinets.Net.UdpClient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2FFlexinets.Net.UdpClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2FFlexinets.Net.UdpClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2FFlexinets.Net.UdpClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2FFlexinets.Net.UdpClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vforteli","download_url":"https://codeload.github.com/vforteli/Flexinets.Net.UdpClient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2FFlexinets.Net.UdpClient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281397338,"owners_count":26493908,"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-10-28T02:00:06.022Z","response_time":60,"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":["mock","netstandard","testing","udp-client"],"created_at":"2024-11-17T21:44:37.093Z","updated_at":"2025-10-28T06:40:05.102Z","avatar_url":"https://github.com/vforteli.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flexinets.Net.IUdpClient\n\nThe purpose of the mock UdpClient is to test receiveing and sending UDP packets.\nCurrently it is only designed for limited use cases where a server receive an UDP packet, and then responds to it using the same UdpClient.\n\nUsage\n``` \n var expected = \"test\";\nvar bytes = Encoding.UTF8.GetBytes(expected);\n\nvar client = new UdpClientMock();\nvar factory = new UdpClientMockFactory(client);\n\nvar task = factory.CreateClient(null).ReceiveAsync();\n\n// This will wait until some other thread sends a response to the same udpclient\nvar response = await client.SendMock(new UdpReceiveResult(bytes, new IPEndPoint(IPAddress.Any, 1812)));\n\nvar actual = Encoding.UTF8.GetString(response.Buffer);\n\nAssert.AreEqual(expected, actual);","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvforteli%2Fflexinets.net.udpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvforteli%2Fflexinets.net.udpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvforteli%2Fflexinets.net.udpclient/lists"}