static void Main(string[] args) { NetController cont = new NetController(); cont.NewConnectionEvent += new NetEvent(cont_NewConnectionEvent); cont.RecieveEvent += new NetEvent(cont_RecieveEvent); cont.Start(51215, IPAddress.Any); while (Console.Read() != 'q') ; }
/// <summary> /// Creates a new controller with profile p. /// </summary> /// <param name="p">What profile this controller should assume</param> public NetController(SocketProfile p) { _Profile = p; _Threads = new Dictionary<Guid, Target>(); NetController.Instance = this; }
/// <summary> /// Creates a new controller with profile p. /// </summary> /// <param name="p">What profile this controller should assume</param> public NetController(SocketProfile p) { _Profile = p; _Threads = new Dictionary <Guid, Target>(); NetController.Instance = this; }