diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-01-24 22:46:48 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-01-29 22:28:01 +0100 |
commit | a16b33031c7bcf2eabf1e0c3571000234b7740df (patch) | |
tree | f012ff7814abe7fa22c5a610388faf4310d53772 /src/network.h | |
parent | 3a3cce8eed7e43faa8c9f606e56bb43ba3bd9451 (diff) |
Attach service
Diffstat (limited to 'src/network.h')
-rw-r--r-- | src/network.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/network.h b/src/network.h index c02dbc3..e22d453 100644 --- a/src/network.h +++ b/src/network.h @@ -134,11 +134,14 @@ struct WaitingRef optional<Ref> check(ReplyBuilder &); }; -struct Server::Priv +struct Server::Priv : enable_shared_from_this<Server::Priv> { Priv(const Head<LocalState> & local, const Identity & self, vector<unique_ptr<Service>> && svcs); ~Priv(); + + shared_ptr<Priv> getptr(); + void doListen(); void doAnnounce(); |