fn create_register_request(
        &mut self, 
        arrow_mac: &MacAddr, 
        event_loop: &mut EventLoop<Self>) {
        let control_msg = {
            let app_context = self.app_context.lock()
                .unwrap();
            let config    = &app_context.config;
            let svc_table = config.service_table()
                .clone();
            let msg    = RegisterMessage::new(
                config.uuid(),
                arrow_mac.octets(),
                config.password(),
                svc_table);
            let control_msg = control::create_register_message(self.msg_id, 
                msg);
            self.last_update = Some(config.version());
            self.msg_id = self.msg_id.wrapping_add(1);
            control_msg
        };
        
        log_debug!(self.logger, "sending REGISTER request...");
        
        self.send_unconfirmed_control_message(control_msg, event_loop);
    }
/// Create a new REGISTER request.
Create a new REGISTER request.
Create a new REGISTER request .
fn create_register_request(
        &mut self, 
        arrow_mac: &MacAddr, 
        event_loop: &mut EventLoop<Self>) {
        let control_msg = {
            let app_context = self.app_context.lock()
                .unwrap();
            let config    = &app_context.config;
            let svc_table = config.service_table()
                .clone();
            let msg    = RegisterMessage::new(
                config.uuid(),
                arrow_mac.octets(),
                config.password(),
                svc_table);
            let control_msg = control::create_register_message(self.msg_id, 
                msg);
            self.last_update = Some(config.version());
            self.msg_id = self.msg_id.wrapping_add(1);
            control_msg
        };
        log_debug!(self.logger, "sending REGISTER request...");
        self.send_unconfirmed_control_message(control_msg, event_loop);
    }
fn create_register_request ( & mut self , arrow_mac : & MacAddr , event_loop : & mut EventLoop < Self > ) { let control_msg = { let app_context = self . app_context . lock ( ) . unwrap ( ) ; let config = & app_context . config ; let svc_table = config . service_table ( ) . clone ( ) ; let msg = RegisterMessage :: new ( config . uuid ( ) , arrow_mac . octets ( ) , config . password ( ) , svc_table ) ; let control_msg = control :: create_register_message ( self . msg_id , msg ) ; self . last_update = Some ( config . version ( ) ) ; self . msg_id = self . msg_id . wrapping_add ( 1 ) ; control_msg } ; log_debug ! ( self logger " " ) ; self . send_unconfirmed_control_message ( control_msg , event_loop ) ; }
Create a new REGISTER request.
Create a new REGISTER request .
&mut self
arrow_mac
&MacAddr
event_loop
&mut EventLoop<Self>
&mut self
arrow_mac
&MacAddr
event_loop
&mut EventLoop<Self>