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
15
#include "
roc_core/noncopyable.h
"
16
#include "
roc_peer/context.h
"
17
18
namespace
roc
{
19
namespace
peer {
20
21
//! Base class for peers.
22
class
BasicPeer
:
public
core::NonCopyable
<> {
23
public
:
24
//! Initialize.
25
BasicPeer
(
Context
&
context
);
26
27
//! Deinitialize.
28
virtual
~BasicPeer
();
29
30
//! Peer's context.
31
Context
&
context
();
32
33
private
:
34
Context
& context_;
35
};
36
37
}
// namespace peer
38
}
// namespace roc
39
40
#endif
// ROC_PEER_BASIC_PEER_H_
roc::core::NonCopyable
Base class for non-copyable objects.
Definition
noncopyable.h:23
roc::peer::BasicPeer
Base class for peers.
Definition
basic_peer.h:22
roc::peer::BasicPeer::context
Context & context()
Peer's context.
roc::peer::BasicPeer::BasicPeer
BasicPeer(Context &context)
Initialize.
roc::peer::BasicPeer::~BasicPeer
virtual ~BasicPeer()
Deinitialize.
roc::peer::Context
Peer context.
Definition
context.h:45
context.h
Peer context.
roc
Root namespace.
noncopyable.h
Non-copyable object.
roc_peer
basic_peer.h
Generated by
1.9.7