blob: cc9fb274d8a9517f97bdfd7985babb903bea0db4 (
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;
};
|