Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
basic_peer.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Roc Streaming authors
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9//! @file roc_peer/basic_peer.h
10//! @brief Base class for peers.
11
12#ifndef ROC_PEER_BASIC_PEER_H_
13#define ROC_PEER_BASIC_PEER_H_
14
16#include "roc_peer/context.h"
17
18namespace roc {
19namespace peer {
20
21//! Base class for peers.
22class BasicPeer : public core::NonCopyable<> {
23public:
24 //! Initialize.
26
27 //! Deinitialize.
28 virtual ~BasicPeer();
29
30 //! Peer's context.
32
33private:
34 Context& context_;
35};
36
37} // namespace peer
38} // namespace roc
39
40#endif // ROC_PEER_BASIC_PEER_H_
Base class for non-copyable objects.
Definition: noncopyable.h:23
Base class for peers.
Definition: basic_peer.h:22
Context & context()
Peer's context.
BasicPeer(Context &context)
Initialize.
virtual ~BasicPeer()
Deinitialize.
Peer context.
Definition: context.h:45
Peer context.
Root namespace.
Non-copyable object.