Esempio n. 1
0
        // ==========================================================


        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;
        }
Esempio n. 2
0
 public PhotonClient()
 {
     this.ip     = IPAddress.Parse(PhotonIO.ReadSettings("ip"));
     this.port   = int.Parse(PhotonIO.ReadSettings("port"));
     this.client = new TcpClient();
 }