netliba.h 502 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <util/datetime/base.h>
  3. namespace NNeh {
  4. //global options
  5. struct TNetLibaOptions {
  6. static size_t ClientThreads;
  7. //period for quick send complete confirmation for next request to some address after receiving request ack
  8. static TDuration AckTailEffect;
  9. //set option, - return false, if option name not recognized
  10. static bool Set(TStringBuf name, TStringBuf value);
  11. };
  12. class IProtocol;
  13. IProtocol* NetLibaProtocol();
  14. }