Skip to content

Instantly share code, notes, and snippets.

View kevincastejon's full-sized avatar

Kevin Castejon kevincastejon

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);