All pastes #12575 Raw Edit

Anonymous

public text v1 · immutable
#12575 ·published 2005-05-25 02:55 UTC
rendered paste body
using System;
using System.Net;
using System.Net.Sockets;

namespace testserver
{
	public class test
	{
		[STAThread]
		public static void Main(string[] args)
		{
			Socket m_listen;
			m_listen = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
			m_listen.Bind(new IPEndPoint(IPAddress.Any, 10300));
			m_listen.Listen(1);
			while(true){}
			
		}
	}
}