Ejemplo 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') ;
 }
Ejemplo 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;
 }
Ejemplo 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;
 }