예제 #1
0
 public void CallWeaveTCPCommandClassUpdateSocketEvent(Socket soc)
 {
     try
     {
         int count = weaveTCPCommandItems.Count;
         WeaveTCPCommandItem[] commandlist = new WeaveTCPCommandItem[count];
         weaveTCPCommandItems.CopyTo(0, commandlist, 0, count);
         foreach (WeaveTCPCommandItem weaveTCPCommandItem in commandlist)
         {
             try
             {
                 weaveTCPCommandItem.WeaveTcpCmd.WeaveUpdateSocketEvent(soc);
             }
             catch (Exception ex)
             {
                 if (WeaveLogEvent != null)
                 {
                     WeaveLogEvent("EventUpdataConnSoc", ex.Message);
                 }
             }
         }
     }
     catch
     {
     }
 }
예제 #2
0
        public void AddCmdWorkItems(WeaveTCPCommand cmd)
        {
            cmd.SetGlobalQueueTable(weaveTable, TcpToken);
            WeaveTCPCommandItem cmdItem = new WeaveTCPCommandItem();

            // Ic.SetGlobalQueueTable(weaveTable, TcpTokenList);
            cmdItem.WeaveTcpCmd = cmd;
            cmdItem.CmdName     = cmd.Getcommand();
            GetAttributeInfo(cmd, cmd.GetType(), cmd);
            weaveTCPCommandItems.Add(cmdItem);
        }