xref: /openbmc/phosphor-net-ipmid/main.hpp (revision bc8958fe)
1 #pragma once
2 
3 #include <boost/asio/io_context.hpp>
4 #include <sdbusplus/asio/connection.hpp>
5 
6 #include <cstddef>
7 #include <memory>
8 
9 // Select call timeout is set arbitrarily set to 30 sec
10 static constexpr size_t SELECT_CALL_TIMEOUT = 30;
11 static const auto IPMI_STD_PORT = 623;
12 
13 extern sd_bus* bus;
14 
15 std::shared_ptr<sdbusplus::asio::connection> getSdBus();
16 std::shared_ptr<boost::asio::io_context> getIo();
17