hanging_server.h 323 B

12345678910111213141516
  1. #pragma once
  2. #include <library/cpp/messagebus/network.h>
  3. #include <util/network/sock.h>
  4. class THangingServer {
  5. private:
  6. std::pair<unsigned, TVector<NBus::TBindResult>> BindResult;
  7. public:
  8. // listen on given port, and nothing else
  9. THangingServer(int port = 0);
  10. // actual port
  11. int GetPort() const;
  12. };