public function parse(&$ipc)
 {
     $this->user_entry->parse($ipc, false);
     $page_cnt = $ipc->read_unpack_u32();
     for ($j = 0; $j < $page_cnt; $j++) {
         $conn_item = new ConnectionEntry();
         $conn_item->parse($ipc);
         if (array_key_exists(intval($conn_item->l7prot), $this->apps)) {
             $app_item = $this->apps[$conn_item->l7prot];
             $app_item->flow_count += 1;
             $app_item->stat->add($conn_item->stat);
             $app_item->connections[] = $conn_item;
             $this->apps[$conn_item->l7prot] = $app_item;
         } else {
             $app_item = new UserAppEntry();
             $app_item->l7prot = $conn_item->l7prot;
             $app_item->l7name = ApplicationStatEntry::translate($conn_item->l7prot);
             $app_item->flow_count = 1;
             $app_item->stat = $conn_item->stat;
             $app_item->connections[] = $conn_item;
             $this->apps[$conn_item->l7prot] = $app_item;
         }
     }
 }
 public function parse(&$ipc)
 {
     $this->app_entry->parse($ipc);
     $page_cnt = $ipc->read_unpack_u32();
     for ($j = 0; $j < $page_cnt; $j++) {
         $conn_item = new ConnectionEntry();
         $conn_item->parse($ipc);
         if (array_key_exists($conn_item->lan_ip, $this->users)) {
             $user_item = $this->users[$conn_item->lan_ip];
             $user_item->flow_count += 1;
             $user_item->stat->add($conn_item->stat);
             $user_item->connections[] = $conn_item;
             $this->users[$conn_item->lan_ip] = $user_item;
         } else {
             $user_item = new ApplicationUserEntry();
             $user_item->lan_ip = $conn_item->lan_ip;
             $user_item->user_name = \OrgController::findUsernameByIp($conn_item->lan_ip);
             $user_item->flow_count = 1;
             $user_item->stat = $conn_item->stat;
             $user_item->connections[] = $conn_item;
             $this->users[$conn_item->lan_ip] = $user_item;
         }
     }
 }