Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
termination_mode.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 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_netio/target_libuv/roc_netio/termination_mode.h
10
//! @brief Connection termination mode.
11
12
#ifndef ROC_NETIO_TERMINATION_MODE_H_
13
#define ROC_NETIO_TERMINATION_MODE_H_
14
15
namespace
roc
{
16
namespace
netio {
17
18
//! Connection termination mode.
19
enum
TerminationMode
{
20
//! Normal graceful termination.
21
//! @remarks
22
//! Remote peer will recieve stream end without errors.
23
Term_Normal
,
24
25
//! Termination with error.
26
//! @remarks
27
//! Remote peer will receive connection reset and report failure.
28
Term_Failure
29
};
30
31
//! Get string representation of termination mode.
32
const
char
*
termination_mode_to_str
(
TerminationMode
mode);
33
34
}
// namespace netio
35
}
// namespace roc
36
37
#endif
// ROC_NETIO_TERMINATION_MODE_H_
roc::netio::termination_mode_to_str
const char * termination_mode_to_str(TerminationMode mode)
Get string representation of termination mode.
roc::netio::TerminationMode
TerminationMode
Connection termination mode.
Definition:
termination_mode.h:19
roc::netio::Term_Normal
@ Term_Normal
Normal graceful termination.
Definition:
termination_mode.h:23
roc::netio::Term_Failure
@ Term_Failure
Termination with error.
Definition:
termination_mode.h:28
roc
Root namespace.
roc_netio
target_libuv
roc_netio
termination_mode.h
Generated by
1.9.1