Esempio n. 1
0
 private InvadersServer()
 {
     this.ip      = IPAddress.Parse(InvadersIO.ReadSettings("ip"));
     this.port    = int.Parse(InvadersIO.ReadSettings("port"));
     this.server  = new TcpListener(this.ip, port);
     this.clients = new Dictionary <string, TcpClient>();
     this.players = new Dictionary <string, IPlayer>();
 }
Esempio n. 2
0
 public InvadersClient()
 {
     this.ip     = IPAddress.Parse(InvadersIO.ReadSettings("ip"));
     this.port   = int.Parse(InvadersIO.ReadSettings("port"));
     this.client = new TcpClient();
 }