Skip to content

Instantly share code, notes, and snippets.

View Szekyy's full-sized avatar
💭
University student learning Computer Science

Aurora Szekyy

💭
University student learning Computer Science
  • Hungary
View GitHub Profile
@darkguy2008
darkguy2008 / UDPSocket.cs
Last active January 21, 2025 23:49
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);