Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
inetwork_task_completer.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 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/inetwork_task_completer.h
10 //! @brief Network task completion handler.
11 
12 #ifndef ROC_NETIO_INETWORK_TASK_COMPLETER_H_
13 #define ROC_NETIO_INETWORK_TASK_COMPLETER_H_
14 
15 #include "roc_netio/network_task.h"
16 
17 namespace roc {
18 namespace netio {
19 
20 //! Network task completion handler.
22 public:
23  virtual ~INetworkTaskCompleter();
24 
25  //! Invoked when network task is completed.
26  //! Should not block.
27  virtual void network_task_completed(NetworkTask&) = 0;
28 };
29 
30 } // namespace netio
31 } // namespace roc
32 
33 #endif // ROC_NETIO_INETWORK_TASK_COMPLETER_H_
Network task completion handler.
virtual void network_task_completed(NetworkTask &)=0
Invoked when network task is completed. Should not block.
Base class for network loop tasks.
Definition: network_task.h:29
Root namespace.
Network task.