Home
last modified time | relevance | path

Searched refs:boost (Results 1 – 25 of 748) sorted by relevance

12345678910>>...30

/openbmc/boost-dbus/include/dbus/detail/
H A Dwatch_timeout.hpp23 void operator()(boost::system::error_code ec, size_t) { in operator ()()
28 boost::asio::generic::stream_protocol::socket &socket = in operator ()()
29 *static_cast<boost::asio::generic::stream_protocol::socket *>(data); in operator ()()
42 static_cast<boost::asio::generic::stream_protocol::socket *>(watch_data); in watch_toggled()
45 socket->async_read_some(boost::asio::null_buffers(), in watch_toggled()
49 socket->async_write_some(boost::asio::null_buffers(), in watch_toggled()
62 boost::asio::io_service &io = *static_cast<boost::asio::io_service *>(data); in add_watch()
70 boost::asio::generic::stream_protocol::socket &socket = in add_watch()
71 *new boost::asio::generic::stream_protocol::socket(io); in add_watch()
73 socket.assign(boost::asio::generic::stream_protocol(0, 0), fd); in add_watch()
[all …]
/openbmc/bmcweb/http/
H A Dhttp_client.hpp93 inline boost::system::error_code defaultRetryHandler(unsigned int respCode) in defaultRetryHandler()
99 return boost::system::errc::make_error_code( in defaultRetryHandler()
100 boost::system::errc::result_out_of_range); in defaultRetryHandler()
104 return boost::system::errc::make_error_code(boost::system::errc::success); in defaultRetryHandler()
114 boost::optional<uint64_t> requestByteLimit = httpReadBodyLimit;
121 std::function<boost::system::error_code(unsigned int respCode)>
127 boost::beast::http::request<bmcweb::HttpBody> req;
130 boost::beast::http::request<bmcweb::HttpBody>&& reqIn, in PendingRequest()
136 namespace http = boost::beast::http;
144 boost::urls::url host;
[all …]
H A Dhttp_connection.hpp78 boost::asio::steady_timer&& timerIn, in Connection()
80 boost::asio::ssl::stream<Adaptor>&& adaptorIn) : in Connection()
108 boost::asio::ssl::verify_context& ctx) in tlsVerifyCallback()
155 boost::system::error_code ec; in prepareMutualTls()
168 boost::beast::error_code ec, bool isTls) in afterDetectSsl()
187 boost::asio::ssl::stream_base::server, buffer.data(), in afterDetectSsl()
230 boost::beast::async_detect_ssl( in start()
237 const boost::system::error_code& ec, in afterSslHandshake()
272 boost::beast::http::request_parser<bmcweb::HttpBody>& instance = in initParser()
280 instance.body_limit(boost::none); in initParser()
[all …]
H A Dwebsocket_impl.hpp51 const boost::urls::url_view& urlViewIn, in ConnectionImpl()
70 ws.set_option(boost::beast::websocket::stream_base::timeout::suggested( in ConnectionImpl()
71 boost::beast::role_type::server)); in ConnectionImpl()
79 using bf = boost::beast::http::field; in start()
83 ws.set_option(boost::beast::websocket::stream_base::decorator( in start()
85 protocolHeader](boost::beast::websocket::response_type& m) { in start()
96 m.result(boost::beast::http::status::unauthorized); in start()
119 using Body = boost::beast::http::request<bmcweb::HttpBody>; in start()
131 outBuffer.commit(boost::asio::buffer_copy(outBuffer.prepare(msg.size()), in sendBinary()
132 boost::asio::buffer(msg))); in sendBinary()
[all …]
H A Dhttp_body.hpp64 const boost::beast::file_posix& file() const in file()
99 fileHandle.fileHandle = boost::beast::file_posix(); in clear()
104 void open(const char* path, boost::beast::file_mode mode, in open()
105 boost::system::error_code& ec) in open()
112 boost::system::error_code ec2; in open()
133 void setFd(int fd, boost::system::error_code& ec) in setFd()
137 boost::system::error_code ec2; in setFd()
153 using const_buffers_type = boost::asio::const_buffer;
170 writer(boost::beast::http::header<IsRequest, Fields>& /*header*/, in writer()
174 static void init(boost::beast::error_code& ec) in init()
[all …]
H A Dhttp_request.hpp29 using Body = boost::beast::http::request<bmcweb::HttpBody>;
33 boost::urls::url urlBase;
36 boost::asio::ip::address ipAddress;
66 void addHeader(boost::beast::http::field key, std::string_view value) in addHeader()
75 ipAddress = boost::asio::ip::address(); in clear()
80 boost::beast::http::verb method() const in method()
85 void method(boost::beast::http::verb verb) in method()
100 std::string_view getHeaderValue(boost::beast::http::field key) const in getHeaderValue()
105 void clearHeader(boost::beast::http::field key) in clearHeader()
120 boost::urls::url& url() in url()
[all …]
H A Dserver_sent_event_impl.hpp66 res.set(boost::beast::http::field::content_type, "text/event-stream"); in start()
67 boost::beast::http::response_serializer<BodyType>& serial = in start()
70 boost::beast::http::async_write_header( in start()
85 boost::beast::get_lowest_layer(adaptor).close(); in close()
90 const boost::system::error_code& ec, in sendSSEHeaderCallback()
110 adaptor.async_read_some(boost::asio::buffer(buffer), in sendSSEHeaderCallback()
116 const boost::system::error_code& ec, size_t bytesRead) in afterReadError()
119 if (ec == boost::asio::error::operation_aborted) in afterReadError()
152 const boost::beast::error_code& ec, in doWriteCallback()
159 if (ec == boost::asio::error::eof) in doWriteCallback()
[all …]
/openbmc/sdbusplus/include/sdbusplus/asio/
H A Dconnection.hpp57 connection(boost::asio::io_context& io) : in connection()
63 connection(boost::asio::io_context& io, sd_bus* bus) : in connection()
86 using callback_t = void(boost::system::error_code, message_t&);
91 boost::asio::async_initiate<send_function, callback_t>( in async_send()
96 boost::asio::yield_context&& token, in async_send_yield()
99 using yield_callback_t = void(boost::system::error_code, message_t); in async_send_yield()
100 return boost::asio::async_initiate<boost::asio::yield_context, in async_send_yield()
107 static void unpack(boost::system::error_code ec, message_t& r, in unpack()
110 using FunctionTuple = boost::callable_traits::args_t<MessageHandler>; in unpack()
133 ec = boost::system::errc::make_error_code( in unpack()
[all …]
/openbmc/bmcweb/include/
H A Dhttp_utility.hpp43 using boost::spirit::x3::char_; in getContentType()
44 using boost::spirit::x3::lit; in getContentType()
45 using boost::spirit::x3::no_case; in getContentType()
46 using boost::spirit::x3::omit; in getContentType()
47 using boost::spirit::x3::parse; in getContentType()
48 using boost::spirit::x3::space; in getContentType()
49 using boost::spirit::x3::symbols; in getContentType()
50 using boost::spirit::x3::uint_; in getContentType()
82 using boost::spirit::x3::char_; in getPreferredContentType()
83 using boost::spirit::x3::lit; in getPreferredContentType()
[all …]
H A Dkvm_websocket.hpp35 boost::asio::ip::tcp::endpoint endpoint( in KvmSession()
36 boost::asio::ip::make_address("127.0.0.1"), 5900); in KvmSession()
38 endpoint, [this, &connIn](const boost::system::error_code& ec) { in KvmSession()
44 if (ec != boost::asio::error::operation_aborted) in KvmSession()
67 size_t copied = boost::asio::buffer_copy( in onMessage()
68 inputBuffer.prepare(data.size()), boost::asio::buffer(data)); in onMessage()
86 [this, weak(weak_from_this())](const boost::system::error_code& ec, in doRead()
100 if (ec != boost::asio::error::operation_aborted) in doRead()
138 [this, weak(weak_from_this())](const boost::system::error_code& ec, in doWrite()
150 if (ec == boost::asio::error::eof) in doWrite()
[all …]
/openbmc/boost-dbus/test/
H A Davahi.cpp20 boost::asio::io_service io; in TEST()
26 m, [&](const boost::system::error_code ec, dbus::message r) { in TEST()
44 boost::asio::deadline_timer t(io, boost::posix_time::seconds(10)); in TEST()
45 t.async_wait([&](const boost::system::error_code& /*e*/) { in TEST()
53 boost::asio::io_service io; in TEST()
73 std::function<void(boost::system::error_code, dbus::message)> event_handler = in TEST()
74 [&](boost::system::error_code ec, dbus::message s) { in TEST()
84 boost::asio::deadline_timer t(io, boost::posix_time::seconds(10)); in TEST()
85 t.async_wait([&](const boost::system::error_code& /*e*/) { in TEST()
93 boost::asio::io_service io; in TEST()
[all …]
/openbmc/bmcweb/redfish-core/src/
H A Derror_messages.cpp86 res.result(boost::beast::http::status::internal_server_error); in generalError()
104 res.result(boost::beast::http::status::created); in created()
122 res.result(boost::beast::http::status::bad_request); in noOperation()
141 res.result(boost::beast::http::status::bad_request); in propertyDuplicate()
160 res.result(boost::beast::http::status::bad_request); in propertyUnknown()
183 res.result(boost::beast::http::status::bad_request); in propertyValueTypeError()
206 res.result(boost::beast::http::status::bad_request); in propertyValueFormatError()
229 res.result(boost::beast::http::status::bad_request); in propertyValueNotInList()
252 res.result(boost::beast::http::status::bad_request); in propertyValueOutOfRange()
271 res.result(boost::beast::http::status::bad_request); in propertyValueError()
[all …]
/openbmc/bmcweb/test/redfish-core/include/
H A Dprivileges_test.cpp32 OperationMap entityPrivileges{{boost::beast::http::verb::get, {{"Login"}}}}; in TEST()
35 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
41 OperationMap entityPrivileges{{boost::beast::http::verb::get, {}}}; in TEST()
44 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
51 {boost::beast::http::verb::get, {{"ConfigureManager"}}}}; in TEST()
54 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
62 {boost::beast::http::verb::get, in TEST()
66 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
73 {boost::beast::http::verb::get, in TEST()
77 boost::beast::http::verb::get, entityPrivileges, userPrivileges)); in TEST()
[all …]
/openbmc/bmcweb/redfish-core/include/
H A Dredfish_aggregator.hpp94 boost::system::result<boost::urls::url> parsedUrl = in searchCollectionsArray()
95 boost::urls::parse_relative_ref(uri); in searchCollectionsArray()
103 boost::urls::segments_ref segments = parsedUrl->segments(); in searchCollectionsArray()
148 boost::urls::url collectionUrl(*it); in searchCollectionsArray()
149 boost::urls::segments_view collectionSegments = collectionUrl.segments(); in searchCollectionsArray()
150 boost::urls::segments_view::iterator itCollection = in searchCollectionsArray()
152 const boost::urls::segments_view::const_iterator endCollection = in searchCollectionsArray()
204 auto parsed = boost::urls::parse_relative_ref(strValue); in addPrefixToStringItem()
214 const boost::urls::url_view& thisUrl = *parsed; in addPrefixToStringItem()
237 const boost::urls::segments_view urlSegments = thisUrl.segments(); in addPrefixToStringItem()
[all …]
/openbmc/bmcweb/include/ibm/
H A Dmanagement_console_rest.hpp54 boost::beast::string_view contentType = req.getHeaderValue("content-type"); in handleFilePut()
57 asyncResp->res.result(boost::beast::http::status::not_acceptable); in handleFilePut()
70 asyncResp->res.result(boost::beast::http::status::not_found); in handleFilePut()
84 boost::beast::http::status::internal_server_error); in handleFilePut()
99 boost::beast::http::status::internal_server_error); in handleFilePut()
110 boost::beast::http::status::internal_server_error); in handleFilePut()
128 asyncResp->res.result(boost::beast::http::status::bad_request); in handleFilePut()
135 asyncResp->res.result(boost::beast::http::status::bad_request); in handleFilePut()
150 boost::beast::http::status::internal_server_error); in handleFilePut()
165 boost::beast::http::status::internal_server_error); in handleFilePut()
[all …]
/openbmc/bmcweb/src/
H A Ddbus_utility.cpp37 void logError(const boost::system::error_code& ec) in logError()
74 std::function<void(const boost::system::error_code&, in getAllProperties()
85 std::function<void(const boost::system::error_code&, in getAllProperties()
95 [callback = std::move(callback)](const boost::system::error_code& ec, in checkDbusPathExists()
107 std::function<void(const boost::system::error_code&, in getSubTree()
112 const boost::system::error_code& ec, in getSubTree()
123 std::function<void(const boost::system::error_code&, in getSubTreePaths()
128 const boost::system::error_code& ec, in getSubTreePaths()
142 std::function<void(const boost::system::error_code&, in getAssociatedSubTree()
147 const boost::system::error_code& ec, in getAssociatedSubTree()
[all …]
H A Dssl_key_handler.cpp139 boost::beast::file_posix file; in verifyOpensslKeyCert()
140 boost::system::error_code ec; in verifyOpensslKeyCert()
141 file.open(filepath.c_str(), boost::beast::file_mode::read, ec); in verifyOpensslKeyCert()
260 boost::system::error_code ec; in writeCertificateToFile()
261 boost::beast::file_posix file; in writeCertificateToFile()
262 file.open(filepath.c_str(), boost::beast::file_mode::write, ec); in writeCertificateToFile()
487 static bool getSslContext(boost::asio::ssl::context& mSslContext, in getSslContext()
491 boost::asio::ssl::context::default_workarounds | in getSslContext()
492 boost::asio::ssl::context::no_sslv2 | in getSslContext()
493 boost::asio::ssl::context::no_sslv3 | in getSslContext()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/
H A D0001-apply-msvc-workaround-for-clang-16.patch8 boost-1.70.0/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the vali…
14 .../boost-1.70.0/boost/mpl/aux_/integral_wrapper.hpp | 2 +-
17 diff --git a/src/third_party/boost-1.70.0/boost/mpl/aux_/integral_wrapper.hpp b/src/third_party/boo…
19 --- a/src/third_party/boost-1.70.0/boost/mpl/aux_/integral_wrapper.hpp
20 +++ b/src/third_party/boost-1.70.0/boost/mpl/aux_/integral_wrapper.hpp
H A D0001-The-std-lib-unary-binary_function-base-classes-are-d.patch11 src/third_party/boost-1.70.0/boost/config/stdlib/libcpp.hpp | 9 +++++++++
14 --- a/src/third_party/boost-1.70.0/boost/config/stdlib/libcpp.hpp
15 +++ b/src/third_party/boost-1.70.0/boost/config/stdlib/libcpp.hpp
30 --- a/src/third_party/boost-1.70.0/boost/container_hash/hash.hpp
31 +++ b/src/third_party/boost-1.70.0/boost/container_hash/hash.hpp
32 @@ -118,7 +118,7 @@ namespace boost
/openbmc/intel-ipmi-oem/src/
H A Dme_to_redfish_hooks.cpp33 static const boost::container::flat_map<uint8_t, std::string> smlink = { in messageHook()
58 static const boost::container::flat_map<uint8_t, std::string>
70 static const boost::container::flat_map<uint8_t, std::string> peciOverDmiError =
76 static const boost::container::flat_map<uint8_t, std::string>
83 static const boost::container::flat_map<uint8_t, std::string>
102 static const boost::container::flat_map<uint8_t, std::string> umaError = {
113 static const boost::container::flat_map<uint8_t, std::string> pttHealthEvent = {
118 static const boost::container::flat_map<uint8_t, std::string>
123 static const boost::container::flat_map<uint8_t, std::string> restrictedMode = {
128 static const boost::container::flat_map<uint8_t, std::string>
[all …]
/openbmc/sdbusplus/example/
H A Dregister-property.cpp19 Application(boost::asio::io_context& ioc, sdbusplus::asio::connection& bus, in Application()
48 return [this](boost::system::error_code error) { in getFailed()
59 [this](boost::system::error_code ec, uint32_t) { in asyncReadPropertyWithIncorrectType()
79 [this](boost::system::error_code ec, std::string value) { in asyncReadProperties()
91 [this](boost::system::error_code ec, std::string value) { in asyncReadProperties()
106 [this](const boost::system::error_code& ec) { in asyncChangeProperty()
123 [this](const boost::system::error_code& ec) { in asyncChangeProperty()
134 boost::asio::post(ioc_, [this] { asyncReadProperties(); }); in asyncChangeProperty()
145 boost::asio::io_context& ioc_;
158 boost::asio::io_context ioc; in main()
[all …]
H A Dasio-example.cpp26 int fooYield(boost::asio::yield_context yield, in fooYield()
30 boost::system::error_code ec; in fooYield()
59 boost::asio::yield_context yield) in do_start_async_method_call_one()
61 boost::system::error_code ec; in do_start_async_method_call_one()
98 boost::asio::yield_context yield) in do_start_async_ipmi_call()
110 boost::system::error_code ec; in do_start_async_ipmi_call()
136 auto ipmiInterface(boost::asio::yield_context /*yield*/, uint8_t netFn, in ipmiInterface()
147 boost::asio::yield_context yield) in do_start_async_to_yield()
149 boost::system::error_code ec; in do_start_async_to_yield()
198 boost::asio::io_context io; in server()
[all …]
/openbmc/bmcweb/http/routing/
H A Dsserule.cpp40 asyncResp->res.result(boost::beast::http::status::internal_server_error); in handle()
45 boost::asio::ip::tcp::socket&& adaptor) in handleUpgrade()
48 crow::sse_socket::ConnectionImpl<boost::asio::ip::tcp::socket>> in handleUpgrade()
50 crow::sse_socket::ConnectionImpl<boost::asio::ip::tcp::socket>>( in handleUpgrade()
56 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>&& adaptor) in handleUpgrade()
59 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>> in handleUpgrade()
61 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>>( in handleUpgrade()
/openbmc/phosphor-pid-control/
H A Dmain.cpp70 static std::vector<std::shared_ptr<boost::asio::steady_timer>> timers;
80 boost::asio::io_context io;
82 boost::asio::signal_set signals(io, SIGHUP, SIGTERM);
158 static boost::asio::steady_timer reloadTimer(io); in restartControlLoops()
183 std::shared_ptr<boost::asio::steady_timer> timer = in restartControlLoops()
185 std::make_shared<boost::asio::steady_timer>(io)); in restartControlLoops()
194 static boost::asio::steady_timer timer(io); in tryRestartControlLoops()
196 auto restartLbd = [](const boost::system::error_code& error) { in tryRestartControlLoops()
197 if (error == boost::asio::error::operation_aborted) in tryRestartControlLoops()
218 boost::asio::post(io, in tryRestartControlLoops()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Daggregation_service.hpp38 boost::beast::http::field::link, in handleAggregationServiceHead()
51 boost::beast::http::field::link, in handleAggregationServiceGet()
68 .methods(boost::beast::http::verb::head)( in requestRoutesAggregationService()
72 .methods(boost::beast::http::verb::get)( in requestRoutesAggregationService()
78 const boost::system::error_code& ec, in populateAggregationSourceCollection()
79 const std::unordered_map<std::string, boost::urls::url>& satelliteInfo) in populateAggregationSourceCollection()
91 member["@odata.id"] = boost::urls::format( in populateAggregationSourceCollection()
108 boost::beast::http::field::link, in handleAggregationSourceCollectionGet()
130 boost::beast::http::field::link, in handleAggregationSourceCollectionHead()
138 .methods(boost::beast::http::verb::get)(std::bind_front( in requestRoutesAggregationSourceCollection()
[all …]

12345678910>>...30