Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
public class UdpSrvrSample : MonoBehaviour {
public static void Main() {
byte[] data = new byte[1024];
IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 9050);