Home
last modified time | relevance | path

Searched refs:peer_id (Results 1 – 13 of 13) sorted by relevance

/external/webrtc/examples/peerconnection/client/
Dpeer_connection_client.cc148 bool PeerConnectionClient::SendToPeer(int peer_id, const std::string& message) { in SendToPeer() argument
154 if (!is_connected() || peer_id == -1) in SendToPeer()
163 my_id_, peer_id, message.length()); in SendToPeer()
169 bool PeerConnectionClient::SendHangUp(int peer_id) { in SendHangUp() argument
170 return SendToPeer(peer_id, kByeMessage); in SendHangUp()
244 void PeerConnectionClient::OnMessageFromPeer(int peer_id, in OnMessageFromPeer() argument
248 callback_->OnPeerDisconnected(peer_id); in OnMessageFromPeer()
250 callback_->OnMessageFromPeer(peer_id, message); in OnMessageFromPeer()
325 size_t peer_id = 0, eoh = 0; in OnRead() local
327 ParseServerResponse(control_data_, content_length, &peer_id, &eoh); in OnRead()
[all …]
Dpeer_connection_client.h29 virtual void OnPeerDisconnected(int peer_id) = 0;
30 virtual void OnMessageFromPeer(int peer_id, const std::string& message) = 0;
63 bool SendToPeer(int peer_id, const std::string& message);
64 bool SendHangUp(int peer_id);
79 void OnMessageFromPeer(int peer_id, const std::string& message);
111 size_t* peer_id,
Dconductor.cc287 void Conductor::OnMessageFromPeer(int peer_id, const std::string& message) { in OnMessageFromPeer() argument
288 RTC_DCHECK(peer_id_ == peer_id || peer_id_ == -1); in OnMessageFromPeer()
293 peer_id_ = peer_id; in OnMessageFromPeer()
300 } else if (peer_id != peer_id_) { in OnMessageFromPeer()
415 void Conductor::ConnectToPeer(int peer_id) { in ConnectToPeer() argument
417 RTC_DCHECK(peer_id != -1); in ConnectToPeer()
426 peer_id_ = peer_id; in ConnectToPeer()
Dconductor.h95 void OnMessageFromPeer(int peer_id, const std::string& message) override;
109 void ConnectToPeer(int peer_id) override;
Dmain_wnd.h31 virtual void ConnectToPeer(int peer_id) = 0;
Dmain_wnd.cc344 LRESULT peer_id = ::SendMessage(listbox_, LB_GETITEMDATA, sel, 0); in OnDefaultAction() local
345 if (peer_id != -1 && callback_) { in OnDefaultAction()
346 callback_->ConnectToPeer(peer_id); in OnDefaultAction()
/external/openscreen/cast/common/channel/
Dvirtual_connection_router.cc32 return entry.second.peer_id == virtual_connection.peer_id; in AddConnection()
36 VCTail{std::move(virtual_connection.peer_id), in AddConnection()
55 if (it->second.peer_id == virtual_connection.peer_id) { in RemoveConnection()
104 if (it->second.peer_id == virtual_connection.peer_id) { in GetConnectionData()
142 if (virtual_conn.peer_id == kBroadcastId) { in Send()
156 message.set_destination_id(std::move(virtual_conn.peer_id)); in Send()
Dvirtual_connection.h103 std::string peer_id; member
108 return a.local_id == b.local_id && a.peer_id == b.peer_id &&
Dconnection_namespace_handler.cc225 << virtual_conn.peer_id << ", " << virtual_conn.socket_id; in HandleConnect()
246 << "): " << conn.local_id << ", " << conn.peer_id << ", " in HandleClose()
278 MakeConnectMessage(virtual_conn.local_id, virtual_conn.peer_id); in SendConnect()
284 MakeCloseMessage(virtual_conn.local_id, virtual_conn.peer_id); in SendClose()
Dvirtual_connection_router.h120 std::string peer_id; member
/external/wpa_supplicant_8/wpa_supplicant/examples/
Ddpp-nfc.py98 peer_id = wpas.request("DPP_NFC_URI " + uri)
99 if "FAIL" in peer_id:
102 peer_id = int(peer_id)
103 summary("peer_id=%d for URI from NFC Tag: %s" % (peer_id, uri))
104 cmd = "DPP_AUTH_INIT peer=%d" % peer_id
468 peer_id = int(res)
489 cmd = "DPP_AUTH_INIT peer=%d own=%d" % (peer_id, own_id)
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_virtual_mem_allocator.cc75 for (const auto& peer_id : peer_gpu_ids) { in Create() local
77 TF_RETURN_IF_ERROR(GpuDriver::GetDevice(peer_id.value(), &peer_handle)); in Create()
/external/openscreen/cast/standalone_sender/
Dlooping_file_cast_agent.cc277 remote_connection_->peer_id); in CreateAndStartSession()