aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test/helper/hanging_server.h
blob: f6b9af24e21175b30749bf7ab2b8012352442199 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <library/cpp/messagebus/network.h>

#include <util/network/sock.h>

class THangingServer {
private:
    std::pair<unsigned, TVector<NBus::TBindResult>> BindResult; 

public:
    // listen on given port, and nothing else
    THangingServer(int port = 0);
    // actual port
    int GetPort() const;
};