{"id":22835214,"url":"https://github.com/jchristn/simpleudp","last_synced_at":"2025-08-21T11:32:16.530Z","repository":{"id":38376861,"uuid":"281835942","full_name":"jchristn/SimpleUdp","owner":"jchristn","description":"SimpleUdp is a super simple way of building UDP clients and servers in C#.","archived":false,"fork":false,"pushed_at":"2024-04-08T21:34:35.000Z","size":780,"stargazers_count":43,"open_issues_count":2,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-12T22:08:40.570Z","etag":null,"topics":["c-sharp","csharp","dotnet","message","nuget","tcp","udp","udp-client","udp-protocol","udp-server","udp-socket"],"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/jchristn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["jchristn"],"custom":["https://paypal.me/joelchristner"]}},"created_at":"2020-07-23T03:00:16.000Z","updated_at":"2024-11-07T10:39:43.000Z","dependencies_parsed_at":"2024-01-11T23:38:59.645Z","dependency_job_id":"10c99662-ffd6-4e42-ba55-3f9ebce22a99","html_url":"https://github.com/jchristn/SimpleUdp","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/jchristn%2FSimpleUdp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchristn%2FSimpleUdp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchristn%2FSimpleUdp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchristn%2FSimpleUdp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jchristn","download_url":"https://codeload.github.com/jchristn/SimpleUdp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230511479,"owners_count":18237657,"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":["c-sharp","csharp","dotnet","message","nuget","tcp","udp","udp-client","udp-protocol","udp-server","udp-socket"],"created_at":"2024-12-12T22:08:42.902Z","updated_at":"2024-12-19T23:12:57.636Z","avatar_url":"https://github.com/jchristn.png","language":"C#","funding_links":["https://github.com/sponsors/jchristn","https://paypal.me/joelchristner"],"categories":[],"sub_categories":[],"readme":"﻿![alt tag](https://github.com/jchristn/simpleudp/blob/master/assets/icon.ico)\n\n# SimpleUdp\n\n## Simple wrapper for UDP client and server in C# \n\n[![NuGet Version](https://img.shields.io/nuget/v/SimpleUdp.svg?style=flat)](https://www.nuget.org/packages/SimpleUdp/) [![NuGet](https://img.shields.io/nuget/dt/SimpleUdp.svg)](https://www.nuget.org/packages/SimpleUdp)    \n\nSimpleUdp provides simple methods for creating your own UDP-based sockets application, enabling easy integration of sending data, receiving data, and building state machines.  \n \n## New in v2.0.x\n\n- Retarget to .NET 8.0\n- Removal of `Start`, `Stop` APIs, and, the started event\n- Better multi-platform compatibility (Windows, Mac OSX, Ubuntu)\n\n## Help or Feedback\n\nNeed help or have feedback?  Please file an issue here!\n\n## Special Thanks\n\nThanks to community members that have helped improve this library!  @jholzer @charleypeng @seatrix\n\n## Need TCP Instead?\n\nI have you covered.\n\n- WatsonTcp - easiest way to build TCP-based applications with built-in framing \n  - Github: https://github.com/jchristn/watsontcp\n  - NuGet: https://www.nuget.org/packages/WatsonTcp/ \n  - [![NuGet Version](https://img.shields.io/nuget/v/WatsonTcp.svg?style=flat)](https://www.nuget.org/packages/WatsonTcp/)\n- SimpleTcp - lightweight TCP wrapper without framing\n  - Github: https://github.com/jchristn/simpletcp\n  - NuGet: https://www.nuget.org/packages/SuperSimpleTcp/ \n  - [![NuGet Version](https://img.shields.io/nuget/v/SuperSimpleTcp.svg?style=flat)](https://www.nuget.org/packages/SuperSimpleTcp/)\n- CavemanTcp - TCP wrapper exposing controls for sending and receiving data to build state machines\n  - Github: https://github.com/jchristn/cavemantcp\n  - NuGet: https://www.nuget.org/packages/CavemanTcp/ \n  - [![NuGet Version](https://img.shields.io/nuget/v/CavemanTcp.svg?style=flat)](https://www.nuget.org/packages/CavemanTcp/)\n  \nDon't know what to use?  Just ask!  File an issue, I'll be happy to help.\n\n## Simple Example\n\nStart a node.\n```\nusing SimpleUdp;\n\nUdpEndpoint udp = new UdpEndpoint(\"127.0.0.1\", 8000);\nudp.EndpointDetected += EndpointDetected;\n\n// only if you want to receive messages...\nudp.DatagramReceived += DatagramReceived;\n\n// send a message...\nudp.Send(\"127.0.0.1\", 8001, \"Hello to my friend listening on port 8001!\");\n\nstatic void EndpointDetected(object sender, EndpointMetadata md)\n{\n  Console.WriteLine(\"Endpoint detected: \" + md.Ip + \":\" + md.Port);\n}\n\nstatic void DatagramReceived(object sender, Datagram dg)\n{\n  Console.WriteLine(\"[\" + dg.Ip + \":\" + dg.Port + \"]: \" + Encoding.UTF8.GetString(dg.Data));\n} \n```\n\n## The Node Project\n\nStart node 1.\n```\nNode\\bin\\Debug\\netcoreapp3.1\u003e node 127.0.0.1 8000\n```\n\nStart node 2.\n```\nNode\\bin\\Debug\\netcoreapp3.1\u003e node 127.0.0.1 8001\n```\n\nSend message from node 1 to node 2.  To do this, enter a command as follows:\n```\n[ip:port] [msg]\n```\ni.e.\n```\n127.0.0.1:8001 hello to my friend running on port 8001!\n```\n\n```\n[127.0.0.1:8000 Command/? for help]: 127.0.0.1:8001 hello to my friend on port 8001!\n```\n\nSend message from node 2 to node 1.\n```\n[127.0.0.1:8001 Command/? for help]: Endpoint detected: 127.0.0.1:8000\n[127.0.0.1:8000]: hello to my friend on port 8001!\n127.0.0.1:8000 hello back to you my friend!\n```\n \n## Version History\n\nPlease refer to CHANGELOG.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchristn%2Fsimpleudp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjchristn%2Fsimpleudp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchristn%2Fsimpleudp/lists"}