Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
iterminate_handler.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/iterminate_handler.h
10 //! @brief Termination handler interface.
11 
12 #ifndef ROC_NETIO_ITERMINATE_HANDLER_H_
13 #define ROC_NETIO_ITERMINATE_HANDLER_H_
14 
15 #include "roc_netio/iconn.h"
17 
18 namespace roc {
19 namespace netio {
20 
21 //! Termination handler interface.
23 public:
24  virtual ~ITerminateHandler();
25 
26  //! Handle completion of asynchronous termination of given connection.
27  //! @note
28  //! This method is called from the network loop thread.
29  virtual void handle_terminate_completed(IConn& conn, void* arg) = 0;
30 };
31 
32 } // namespace netio
33 } // namespace roc
34 
35 #endif // ROC_NETIO_ITERMINATE_HANDLER_H_
Connection interface.
Definition: iconn.h:30
Termination handler interface.
virtual void handle_terminate_completed(IConn &conn, void *arg)=0
Handle completion of asynchronous termination of given connection.
Connection interface.
Connection event handler interface.
Root namespace.