示例#1
0
 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;
        }