Esempio n. 1
0
        private void Init(ClientConnectorSettings settings)
        {
            _settings = settings;
            _settings.PacketsMap.Add(new Tuple <int, int>(0, 0), typeof(long));   // keep alive
            _settings.PacketsMap.Add(new Tuple <int, int>(0, 1), typeof(string)); // request response error

            new Thread(PacketsQueueWorker).Start();
        }
Esempio n. 2
0
 public ClientConnector(ClientConnectorSettings settings)
 {
     Init(settings);
 }