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
"
16
#include "
roc_netio/iconn_handler.h
"
17
18
namespace
roc
{
19
namespace
netio {
20
21
//! Termination handler interface.
22
class
ITerminateHandler
{
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_
roc::netio::IConn
Connection interface.
Definition:
iconn.h:30
roc::netio::ITerminateHandler
Termination handler interface.
Definition:
iterminate_handler.h:22
roc::netio::ITerminateHandler::handle_terminate_completed
virtual void handle_terminate_completed(IConn &conn, void *arg)=0
Handle completion of asynchronous termination of given connection.
iconn.h
Connection interface.
iconn_handler.h
Connection event handler interface.
roc
Root namespace.
roc_netio
target_libuv
roc_netio
iterminate_handler.h
Generated by
1.9.1