MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / AssignProxy

Method AssignProxy

src/dbus/requiresqueue-proxy.hpp:115–125  ·  view source on GitHub ↗

* If the DBusRequiresQueueProxy object was setup without a proxy, * this method can be used to assign the proxy connection. * * @param prx DBus::Proxy::Client object to use for * the D-Bus calls * @param tgt DBus::Proxy::TargetPreset object with the * D-Bus obje

Source from the content-addressed store, hash-verified

113 * means this object was already assigned to a proxy
114 */
115 const bool AssignProxy(DBus::Proxy::Client::Ptr prx,
116 DBus::Proxy::TargetPreset::Ptr tgt)
117 {
118 if (!prx && !target)
119 {
120 return false;
121 }
122 proxy = prx;
123 target = tgt;
124 return true;
125 }
126
127
128 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected