Lines Matching refs:networkId
40 [this] (const std::string &networkId, NetPacket &packet) {
41 this->OnStartCooperate(networkId, packet);}},
43 [this] (const std::string &networkId, NetPacket &packet) {
44 this->OnStopCooperate(networkId, packet);}},
46 [this] (const std::string &networkId, NetPacket &packet) {
47 this->OnComeBack(networkId, packet);}},
49 [this] (const std::string &networkId, NetPacket &packet) {
50 this->OnRelayCooperate(networkId, packet);}},
52 [this] (const std::string &networkId, NetPacket &packet) {
53 this->OnRelayCooperateFinish(networkId, packet);}},
55 [this] (const std::string &networkId, NetPacket &packet) {
56 this->OnSubscribeMouseLocation(networkId, packet);}},
58 [this] (const std::string &networkId, NetPacket &packet) {
59 this->OnUnSubscribeMouseLocation(networkId, packet);}},
61 [this] (const std::string &networkId, NetPacket &packet) {
62 this->OnReplySubscribeLocation(networkId, packet);}},
64 [this] (const std::string &networkId, NetPacket &packet) {
65 this->OnReplyUnSubscribeLocation(networkId, packet);}},
67 [this] (const std::string &networkId, NetPacket &packet) {
68 this->OnRemoteMouseLocation(networkId, packet);}},
70 [this] (const std::string &networkId, NetPacket &packet) {
71 this->OnRemoteInputDevice(networkId, packet);}},
73 [this] (const std::string &networkId, NetPacket &packet) {
74 this->OnRemoteHotPlug(networkId, packet);}}
94 int32_t DSoftbusHandler::OpenSession(const std::string &networkId)
102 return env_->GetDSoftbus().OpenSession(networkId);
105 void DSoftbusHandler::CloseSession(const std::string &networkId)
108 env_->GetDSoftbus().CloseSession(networkId);
117 int32_t DSoftbusHandler::StartCooperate(const std::string &networkId, const DSoftbusStartCooperate &event)
127 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet);
129 OnCommunicationFailure(networkId);
134 int32_t DSoftbusHandler::StopCooperate(const std::string &networkId, const DSoftbusStopCooperate &event)
138 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet);
140 OnCommunicationFailure(networkId);
145 int32_t DSoftbusHandler::ComeBack(const std::string &networkId, const DSoftbusComeBack &event)
154 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet);
156 OnCommunicationFailure(networkId);
161 int32_t DSoftbusHandler::RelayCooperate(const std::string &networkId, const DSoftbusRelayCooperate &event)
170 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet);
172 OnCommunicationFailure(networkId);
177 int32_t DSoftbusHandler::RelayCooperateFinish(const std::string &networkId, const DSoftbusRelayCooperateFinished &event)
186 int32_t ret = env_->GetDSoftbus().SendPacket(networkId, packet);
188 OnCommunicationFailure(networkId);
198 void DSoftbusHandler::OnBind(const std::string &networkId)
200 FI_HILOGI("Bind to \'%{public}s\'", Utility::Anonymize(networkId).c_str());
204 .networkId = networkId
208 void DSoftbusHandler::OnShutdown(const std::string &networkId)
210 FI_HILOGI("Connection with \'%{public}s\' shutdown", Utility::Anonymize(networkId).c_str());
214 .networkId = networkId
218 void DSoftbusHandler::OnConnected(const std::string &networkId)
220 FI_HILOGI("Connection to \'%{public}s\' successfully", Utility::Anonymize(networkId).c_str());
224 .networkId = networkId
228 bool DSoftbusHandler::OnPacket(const std::string &networkId, NetPacket &packet)
234 (it->second)(networkId, packet);
238 Utility::Anonymize(networkId).c_str());
251 void DSoftbusHandler::OnCommunicationFailure(const std::string &networkId)
253 env_->GetDSoftbus().CloseSession(networkId);
254 FI_HILOGI("Notify communication failure with peer(%{public}s)", Utility::Anonymize(networkId).c_str());
258 .networkId = networkId
262 void DSoftbusHandler::OnStartCooperate(const std::string &networkId, NetPacket &packet)
266 .networkId = networkId,
283 void DSoftbusHandler::OnStopCooperate(const std::string &networkId, NetPacket &packet)
287 .networkId = networkId,
295 void DSoftbusHandler::OnComeBack(const std::string &networkId, NetPacket &packet)
299 .networkId = networkId,
316 void DSoftbusHandler::OnRelayCooperate(const std::string &networkId, NetPacket &packet)
320 .networkId = networkId,
333 void DSoftbusHandler::OnRelayCooperateFinish(const std::string &networkId, NetPacket &packet)
337 .networkId = networkId,
353 packet >> event.networkId >> event.remoteNetworkId;
367 packet >> event.networkId >> event.remoteNetworkId;
381 packet >> event.networkId >> event.remoteNetworkId >> event.result;
395 packet >> event.networkId >> event.remoteNetworkId >> event.result;
409 packet >> event.networkId >> event.remoteNetworkId >> event.mouseLocation.displayX >>
420 void DSoftbusHandler::OnRemoteInputDevice(const std::string& networkId, NetPacket &packet)
426 event.networkId = networkId;
445 void DSoftbusHandler::OnRemoteHotPlug(const std::string &networkId, NetPacket &packet)