Example #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>();
 }
Example #2
0
 public InvadersClient()
 {
     this.ip     = IPAddress.Parse(InvadersIO.ReadSettings("ip"));
     this.port   = int.Parse(InvadersIO.ReadSettings("port"));
     this.client = new TcpClient();
 }