コード例 #1
0
ファイル: Client.cs プロジェクト: navaneethrameshan/PACMANS
 public Client(string username, int port, string path, string configFile)
 {
     _username = username;
     _port = port;
     _path = path;
     _configFile = _path + configFile;
     ReadConfigurationFile();
     _isOnline = false;
     //initPMSObject();
     _slotManager = new SlotManager(_username, _port, _servers);
     //_slotManager.setPMSObject(pms);
     string logpath = new Uri(_path + "log\\log_client_" + _username + ".txt").LocalPath;
     _logfile = new StreamWriter(logpath, true);
     _logfile.WriteLine("-");
     _logfile.AutoFlush = true;
 }
コード例 #2
0
ファイル: Client.cs プロジェクト: wmalik/PACMANS
        public Client(string username, int port, string path, string configFile)
        {
            _username   = username;
            _port       = port;
            _path       = path;
            _configFile = _path + configFile;
            ReadConfigurationFile();
            _isOnline = false;
            //initPMSObject();
            _slotManager = new SlotManager(_username, _port, _servers);
            //_slotManager.setPMSObject(pms);
            string logpath = new Uri(_path + "log\\log_client_" + _username + ".txt").LocalPath;

            _logfile = new StreamWriter(logpath, true);
            _logfile.WriteLine("-");
            _logfile.AutoFlush = true;
        }