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