aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test/helper/hanging_server.cpp
blob: b9c2f0571dc531b04e3f17221c9fbfeef9691ca9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "hanging_server.h"

#include <util/system/yassert.h>

using namespace NBus;

THangingServer::THangingServer(int port) { 
    BindResult = BindOnPort(port, false);
}

int THangingServer::GetPort() const {
    return BindResult.first;
}