MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / getMethodCallTimeout

Method getMethodCallTimeout

src/Connection.cpp:230–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230uint64_t Connection::getMethodCallTimeout() const
231{
232 uint64_t timeout{};
233
234 auto r = sdbus_->sd_bus_get_method_call_timeout(bus_.get(), &timeout);
235
236 SDBUS_THROW_ERROR_IF(r < 0, "Failed to get method call timeout", -r);
237
238 return timeout;
239}
240
241void Connection::addMatch(const std::string& match, message_handler callback)
242{

Callers 1

TYPED_TESTFunction · 0.80

Calls 2

getMethod · 0.45

Tested by 1

TYPED_TESTFunction · 0.64