Esempio n. 1
0
 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') ;
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 /// <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;
 }