Home
last modified time | relevance | path

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

/external/webrtc/webrtc/examples/peerconnection/client/
Dpeer_connection_client.cc157 bool PeerConnectionClient::SendToPeer(int peer_id, const std::string& message) { in SendToPeer() argument
163 if (!is_connected() || peer_id == -1) in SendToPeer()
172 my_id_, peer_id, message.length()); in SendToPeer()
178 bool PeerConnectionClient::SendHangUp(int peer_id) { in SendHangUp() argument
179 return SendToPeer(peer_id, kByeMessage); in SendHangUp()
255 void PeerConnectionClient::OnMessageFromPeer(int peer_id, in OnMessageFromPeer() argument
259 callback_->OnPeerDisconnected(peer_id); in OnMessageFromPeer()
261 callback_->OnMessageFromPeer(peer_id, message); in OnMessageFromPeer()
335 size_t peer_id = 0, eoh = 0; in OnRead() local
336 bool ok = ParseServerResponse(control_data_, content_length, &peer_id, in OnRead()
[all …]
Dpeer_connection_client.h30 virtual void OnPeerDisconnected(int peer_id) = 0;
31 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);
103 size_t* peer_id, size_t* eoh);
Dconductor.cc234 void Conductor::OnMessageFromPeer(int peer_id, const std::string& message) { in OnMessageFromPeer() argument
235 ASSERT(peer_id_ == peer_id || peer_id_ == -1); in OnMessageFromPeer()
240 peer_id_ = peer_id; in OnMessageFromPeer()
247 } else if (peer_id != peer_id_) { in OnMessageFromPeer()
353 void Conductor::ConnectToPeer(int peer_id) { in ConnectToPeer() argument
355 ASSERT(peer_id != -1); in ConnectToPeer()
364 peer_id_ = peer_id; in ConnectToPeer()
Dconductor.h88 virtual void OnMessageFromPeer(int peer_id, const std::string& message);
102 virtual void ConnectToPeer(int peer_id);
Dmain_wnd.cc332 LRESULT peer_id = ::SendMessage(listbox_, LB_GETITEMDATA, sel, 0); in OnDefaultAction() local
333 if (peer_id != -1 && callback_) { in OnDefaultAction()
334 callback_->ConnectToPeer(peer_id); in OnDefaultAction()
Dmain_wnd.h30 virtual void ConnectToPeer(int peer_id) = 0;
/external/autotest/client/cros/tendo/n_faced_peerd/
Dservice.py17 def __init__(self, bus, path, peer_id, service_id, service_info, ip_info, argument
32 self.peer_id = peer_id
59 return dbus.String(self.peer_id)
Dpeer.py18 def __init__(self, bus, path, peer_id, object_manager, is_self=False): argument
31 self.uuid = peer_id