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

Method setMethodCallTimeout

src/Connection.cpp:223–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void Connection::setMethodCallTimeout(uint64_t timeout)
224{
225 auto r = sdbus_->sd_bus_set_method_call_timeout(bus_.get(), timeout);
226
227 SDBUS_THROW_ERROR_IF(r < 0, "Failed to set method call timeout", -r);
228}
229
230uint64_t Connection::getMethodCallTimeout() const
231{

Callers 1

TYPED_TESTFunction · 0.45

Calls 2

getMethod · 0.45

Tested by 1

TYPED_TESTFunction · 0.36