Ejemplo n.º 1
0
        private void processPutRoomDataResponse(string input_data_val)
        {
            string     group_id_str = input_data_val.Substring(0, Protocols.FabricThemeProtocolClass.FABRIC_GROUP_ID_SIZE);
            string     input_data   = input_data_val.Substring(Protocols.FabricThemeProtocolClass.FABRIC_GROUP_ID_SIZE);
            GroupClass group        = this.GroupMgrObject().GetGroupByGroupIdStr(group_id_str);

            if (group != null)
            {
                int      session_array_size = group.GetSessionArraySize();
                object[] session_array      = group.GetSessionArray();
                for (int i = 0; i < session_array_size; i++)
                {
                    SessionClass session = (SessionClass)session_array[i];
                    session.EnqueuePendingDownLinkData(input_data);
                }
            }
        }
Ejemplo n.º 2
0
        private void processSetupRoomResponse(string input_data_val)
        {
            string group_id_str = input_data_val.Substring(0, Protocols.FabricThemeProtocolClass.FABRIC_GROUP_ID_SIZE);
            string room_id_str  = input_data_val.Substring(Protocols.FabricThemeProtocolClass.FABRIC_GROUP_ID_SIZE);

            GroupClass group = this.GroupMgrObject().GetGroupByGroupIdStr(group_id_str);

            if (group != null)
            {
                group.SetRoomIdStr(room_id_str);
                int      session_array_size = group.GetSessionArraySize();
                object[] session_array      = group.GetSessionArray();
                //group->setSessionTableArray((SessionClass**)phwangArrayMgrGetArrayTable(group->sessionArrayMgr(), &session_array_size));
                //printf("++++++++++++++++++++++++++++++++++++++++++++%d\n", session_array_size);
                for (int i = 0; i < session_array_size; i++)
                {
                    SessionClass session = (SessionClass)session_array[i];
                    session.LinkObject().SetPendingSessionSetup3(session.BrowserThemeIdStr(), session.SessionIdStr(), "");
                }
            }
        }