OSSIA
Open Scenario System for Interactive Application
context_functions.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 
4 #include <memory>
5 #include <thread>
6 
7 namespace ossia::net
8 {
9 struct network_context;
10 using network_context_ptr = std::shared_ptr<network_context>;
11 
12 OSSIA_EXPORT
13 std::shared_ptr<ossia::net::network_context> create_network_context();
14 
15 OSSIA_EXPORT
16 void run_network_context(ossia::net::network_context&);
17 
18 OSSIA_EXPORT
19 void poll_network_context(ossia::net::network_context&);
20 
21 OSSIA_EXPORT
22 std::thread run_threaded_network_context(ossia::net::network_context&);
23 
24 OSSIA_EXPORT
25 void stop_network_context(ossia::net::network_context&);
26 }