pub fn new_control_connection(&self, peer_id: &PeerId, channel: zx::Socket) {
        let peer_handle = self.get_remote_peer(peer_id);
        match AvcPeer::new(channel) {
            Ok(peer) => {
                fx_vlog!(tag: "avrcp", 1, "new control peer {:#?}", peer);
                peer_handle.set_control_connection(peer);
            }
            Err(e) => {
                fx_log_err!("Unable to make peer from socket {}: {:?}", peer_id, e);
            }
        }
    }
/// Handle a new incoming connection by a remote peer.
Handle a new incoming connection by a remote peer.
Handle a new incoming connection by a remote peer .
pub fn new_control_connection(&self, peer_id: &PeerId, channel: zx::Socket) {
        let peer_handle = self.get_remote_peer(peer_id);
        match AvcPeer::new(channel) {
            Ok(peer) => {
                fx_vlog!(tag: "avrcp", 1, "new control peer {:#?}", peer);
                peer_handle.set_control_connection(peer);
            }
            Err(e) => {
                fx_log_err!("Unable to make peer from socket {}: {:?}", peer_id, e);
            }
        }
    }
pub fn new_control_connection ( & self , peer_id : & PeerId , channel : zx :: Socket ) { let peer_handle = self . get_remote_peer ( peer_id ) ; match AvcPeer :: new ( channel ) { Ok ( peer ) => { fx_vlog ! ( tag " " 1 " " peer ) ; peer_handle . set_control_connection ( peer ) ; } Err ( e ) => { fx_log_err ! ( " " peer_id e ) ; } } }
Handle a new incoming connection by a remote peer.
Handle a new incoming connection by a remote peer .
&self
peer_id
&PeerId
channel
zx::Socket
&self
peer_id
&PeerId
channel
zx::Socket