Skip to content

Instantly share code, notes, and snippets.

View DxrMorgan's full-sized avatar
💭
Let's defeat fascism in Ukraine!

Dexter Morgan DxrMorgan

💭
Let's defeat fascism in Ukraine!
View GitHub Profile
@darkguy2008
darkguy2008 / UDPSocket.cs
Last active July 10, 2024 09:13
Simple C# UDP server/client in 56 lines
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UDP
{
public class UDPSocket
{
private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);