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.
20  //! Normal graceful termination.
21  //! @remarks
22  //! Remote peer will recieve stream end without errors.
24 
25  //! Termination with error.
26  //! @remarks
27  //! Remote peer will receive connection reset and report failure.
29 };
30 
31 //! Get string representation of termination mode.
33 
34 } // namespace netio
35 } // namespace roc
36 
37 #endif // ROC_NETIO_TERMINATION_MODE_H_
const char * termination_mode_to_str(TerminationMode mode)
Get string representation of termination mode.
TerminationMode
Connection termination mode.
@ Term_Normal
Normal graceful termination.
@ Term_Failure
Termination with error.
Root namespace.