aboutsummaryrefslogblamecommitdiffstats
path: root/library/cpp/messagebus/test/helper/hanging_server.h
blob: cc9fb274d8a9517f97bdfd7985babb903bea0db4 (plain) (tree)
1
2
3
4
5
6
7
8
9
            
                                           
 


                              
                                                               
 




                                             
#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;
};