acceptor_status.h 674 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include "netaddr.h"
  3. #include <util/network/init.h>
  4. namespace NBus {
  5. namespace NPrivate {
  6. struct TAcceptorStatus {
  7. bool Summary;
  8. ui64 AcceptorId;
  9. SOCKET Fd;
  10. TNetAddr ListenAddr;
  11. unsigned AcceptSuccessCount;
  12. TInstant LastAcceptSuccessInstant;
  13. unsigned AcceptErrorCount;
  14. TInstant LastAcceptErrorInstant;
  15. int LastAcceptErrorErrno;
  16. void ResetIncremental();
  17. TAcceptorStatus();
  18. TAcceptorStatus& operator+=(const TAcceptorStatus& that);
  19. TString PrintToString() const;
  20. };
  21. }
  22. }