{"id":22222172,"url":"https://github.com/davewalker5/udpclientserver","last_synced_at":"2026-04-28T22:34:52.443Z","repository":{"id":132526278,"uuid":"233178075","full_name":"davewalker5/UdpClientServer","owner":"davewalker5","description":"UdpClientServer is a demonstration of UDP connectivity using the .NET UdpCient","archived":false,"fork":false,"pushed_at":"2024-11-28T06:54:50.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T07:44:13.202Z","etag":null,"topics":["dotnet","netcore","netstandard","udp"],"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/davewalker5.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}},"created_at":"2020-01-11T04:51:44.000Z","updated_at":"2024-11-28T06:54:54.000Z","dependencies_parsed_at":"2023-05-17T10:45:39.393Z","dependency_job_id":null,"html_url":"https://github.com/davewalker5/UdpClientServer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/davewalker5/UdpClientServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewalker5%2FUdpClientServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewalker5%2FUdpClientServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewalker5%2FUdpClientServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewalker5%2FUdpClientServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davewalker5","download_url":"https://codeload.github.com/davewalker5/UdpClientServer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewalker5%2FUdpClientServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32402671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dotnet","netcore","netstandard","udp"],"created_at":"2024-12-02T23:17:15.749Z","updated_at":"2026-04-28T22:34:52.428Z","avatar_url":"https://github.com/davewalker5.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UdpClientServer\n\n[![Build Status](https://github.com/davewalker5/UdpClientServer/workflows/.NET%20Core%20CI%20Build/badge.svg)](https://github.com/davewalker5/UdpClientServer/actions)\n[![GitHub issues](https://img.shields.io/github/issues/davewalker5/UdpClientServer)](https://github.com/davewalker5/UdpClientServer/issues)\n[![Releases](https://img.shields.io/github/v/release/davewalker5/UdpClientServer.svg?include_prereleases)](https://github.com/davewalker5/UdpClientServer/releases)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/davewalker5/UdpClientServer/blob/master/LICENSE)\n[![Language](https://img.shields.io/badge/language-c%23-blue.svg)](https://github.com/davewalker5/UdpClientServer/)\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/davewalker5/UdpClientServer)](https://github.com/davewalker5/UdpClientServer/)\n\nUdpClientServer is a demonstration of UDP connectivity using the .NET UdpCient. It demonstrates the following:\n\n| Mode | Description |\n| --- | --- |\n| client | Receives input from the user and sends it to the server |\n| server | Receives and acknowledges data from the client |\n| sender | Broadcasts data at regular intervals |\n| listener | Listens for and reports data broadcast by the sender |\n\nIt also demonstrates client/listener and server/sender combinations.\n\n## Getting Started\n\n### Pre-Requisites\n\nYou will need .NET Core 3.0 and the .NET CLI installed. Instructions for downloading and installing are on the .NET website:\n\n[https://dotnet.microsoft.com/download](https://dotnet.microsoft.com/download)\n\n### Building the Project\n\nTo build the project using the .NET CLI, open a terminal window, change to the \"src\" folder of your working copy and run the following:\n\n```\ndotnet build UdpClientServer.sln\n```\n\n## Usage\n\n### Running a Client/Server Pair\n\nOpen two terminal windows. In the first, change to the folder containing the compiled output and enter the following:\n\n```\nUdpClientServer server\n```\n\nIn the second, change to the folder containing the compiled output and enter the following:\n\n```\nUdpClientServer client\n```\n\nYou will be prompted for some data. Enter some text to send it to the server and you will see it echoed to the terminal along with the response from the server on receipt of that  data:\n\n```\nData or [ENTER] to quit : hello\n3786 : Sent 5 bytes : hello\n3786 : Read 2 bytes : ok\nData or [ENTER] to quit : goodbye\n3786 : Sent 7 bytes : goodbye\n3786 : Read 2 bytes : ok\nData or [ENTER] to quit : \n```\n\nAs each line of text is received, the server will respond by echoing the text sending an \"ok\" response back to the client, that you can see echoed in the:\n\n```\n3690 : Read 5 bytes : hello\n3690 : Read 7 bytes : goodbye\n```\n\nWhen you're finished, enter \"stop\" in the client  to stop both the client and server.\n\n### Running a Sender/Listener Pair\n\nOpen two terminal windows. In the first, change to the folder containing the compiled output and enter the following:\n\n```\nUdpClientServer sender\n```\n\nThe sender will immediately start broadcasting data:\n\n```\n4000 : Sent 19 bytes : 11/01/2020 04:30:09\n4000 : Sent 19 bytes : 11/01/2020 04:30:11\n4000 : Sent 19 bytes : 11/01/2020 04:30:12\n4000 : Sent 19 bytes : 11/01/2020 04:30:13\n4000 : Sent 19 bytes : 11/01/2020 04:30:14\n```\n\nIn the second, change to the folder containing the compiled output and enter the following:\n\n```\nUdpClientServer listener\n```\n\nThe listener will immediately start listening for and echoing data from the sender:\n\n```\n4073 : Sent 19 bytes : 11/01/2020 04:30:59\n4073 : Sent 19 bytes : 11/01/2020 04:31:00\n4073 : Sent 19 bytes : 11/01/2020 04:31:01\n4073 : Sent 19 bytes : 11/01/2020 04:31:02\n4073 : Sent 19 bytes : 11/01/2020 04:31:03\n```\n\nWhen you're finished, close the two windows or CTRL-C out of the running applications in each one.\n\n### Running Combined Server-Sender and Client-Listener\n\nOpen two terminal windows. In the first, change to the folder containing the compiled output and enter the following:\n\n```\nUdpClientServer server-sender\n```\n\nThis starts a sender on a background thread and a server, listening for and responding to input, on the foreground thread.\n\nIn the second, change to the folder containing the compiled output and enter the following:\n\n```\nUdpClientServer client-listener\n```\n\nThis starts a listener on a background thread and a client, receiving input and sending it to the server, on the foreground thread. \n\n## Authors\n\n- **Dave Walker** - *Initial work*\n\n## Feedback\n\nTo file issues or suggestions, please use the [Issues](https://github.com/davewalker5/UdpClientServer/issues) page for this project on GitHub.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavewalker5%2Fudpclientserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavewalker5%2Fudpclientserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavewalker5%2Fudpclientserver/lists"}