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(); }
public ClientConnector(ClientConnectorSettings settings) { Init(settings); }