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