Lines Matching defs:tunnel
43 int32_t CooperateClient::RegisterListener(ITunnelClient &tunnel,
60 int32_t ret = tunnel.AddWatch(Intention::COOPERATE, CooperateRequestID::REGISTER_LISTENER, param, reply);
71 int32_t CooperateClient::UnregisterListener(ITunnelClient &tunnel,
92 return tunnel.RemoveWatch(Intention::COOPERATE, CooperateRequestID::UNREGISTER_LISTENER, param, reply);
97 int32_t CooperateClient::Enable(ITunnelClient &tunnel,
106 int32_t ret = tunnel.Enable(Intention::COOPERATE, param, reply);
115 int32_t CooperateClient::Disable(ITunnelClient &tunnel,
124 int32_t ret = tunnel.Disable(Intention::COOPERATE, param, reply);
136 int32_t CooperateClient::Start(ITunnelClient &tunnel, const std::string &remoteNetworkId,
149 int32_t ret = tunnel.Start(Intention::COOPERATE, param, reply);
160 int32_t CooperateClient::Stop(ITunnelClient &tunnel,
169 int32_t ret = tunnel.Stop(Intention::COOPERATE, param, reply);
180 int32_t CooperateClient::GetCooperateState(ITunnelClient &tunnel,
189 int32_t ret = tunnel.GetParam(Intention::COOPERATE, CooperateRequestID::GET_COOPERATE_STATE, param, reply);
198 int32_t CooperateClient::GetCooperateState(ITunnelClient &tunnel, const std::string &udId, bool &state)
204 if (tunnel.GetParam(Intention::COOPERATE, CooperateRequestID::GET_COOPERATE_STATE_SYNC, param, reply) != RET_OK) {
214 int32_t CooperateClient::RegisterEventListener(ITunnelClient &tunnel,
227 if (int32_t ret = tunnel.AddWatch(Intention::COOPERATE, CooperateRequestID::REGISTER_EVENT_LISTENER, param, reply);
237 int32_t CooperateClient::UnregisterEventListener(ITunnelClient &tunnel,
270 if (int32_t ret = tunnel.RemoveWatch(Intention::COOPERATE,
279 int32_t CooperateClient::AddHotAreaListener(ITunnelClient &tunnel, HotAreaListenerPtr listener)
289 if (int32_t ret = tunnel.AddWatch(Intention::COOPERATE,
298 int32_t CooperateClient::RemoveHotAreaListener(ITunnelClient &tunnel, HotAreaListenerPtr listener)
321 if (int32_t ret = tunnel.RemoveWatch(Intention::COOPERATE,