private void AssociateRequest(TaskAssociateRequest task)
 {
     if (task == null)
     {
         return;
     }
     // FIXME: not implemented
     Trace.Print("Mac: AssociateRequest: not implemented");
     if (task.handler != null)
     {
         task.handler.Invoke(this, State.cReservedShortAddr, MacEnum.NotImplemented, new SecurityOptions());
     }
 }
示例#2
0
        public void AssociateRequest(
            Byte logicalChannel,
            Byte channelPage,
            MacAddress coordAddr,
            UInt16 coordPanId,
            CapabilityInformation capability,
            SecurityOptions securityOptions,
            AssociateConfirmHandler handler)
        {
            TaskAssociateRequest task = new TaskAssociateRequest(
                logicalChannel,
                channelPage,
                coordAddr,
                coordPanId,
                capability,
                securityOptions,
                handler);

            if (!_taskQueue.Add(task) && handler != null)
            {
                handler.Invoke(this, State.cReservedShortAddr, MacEnum.Congested, new SecurityOptions());
            }
        }
示例#3
0
文件: Mac.cs 项目: prabby/miniclr
 public void AssociateRequest(
     Byte logicalChannel,
     Byte channelPage,
     MacAddress coordAddr,
     UInt16 coordPanId,
     CapabilityInformation capability,
     SecurityOptions securityOptions,
     AssociateConfirmHandler handler)
 {
     TaskAssociateRequest task = new TaskAssociateRequest(
         logicalChannel,
         channelPage,
         coordAddr,
         coordPanId,
         capability,
         securityOptions,
         handler);
     if (!_taskQueue.Add(task) && handler != null)
     {
         handler.Invoke(this, State.cReservedShortAddr, MacEnum.Congested, new SecurityOptions());
     }
 }
 private void AssociateRequest(TaskAssociateRequest task)
 {
     if (task == null)
         return;
     // FIXME: not implemented
     Trace.Print("Mac: AssociateRequest: not implemented");
     if (task.handler != null)
     {
         task.handler.Invoke(this, State.cReservedShortAddr, MacEnum.NotImplemented, new SecurityOptions());
     }
 }