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