// ========================================================== private PhotonServer() { this.ip = IPAddress.Parse(PhotonIO.ReadSettings("ip")); this.port = int.Parse(PhotonIO.ReadSettings("port")); this.server = new TcpListener(this.ip, port); this.clients = new Dictionary <string, TcpClient>(); this.users = GameDB.Instance.Users; }
public PhotonClient() { this.ip = IPAddress.Parse(PhotonIO.ReadSettings("ip")); this.port = int.Parse(PhotonIO.ReadSettings("port")); this.client = new TcpClient(); }