private void recv(SyncPDU m) {
        cancelTimerTask();
        try {
            byte type = m.getType();
            boolean sv = false;
            switch (type) {
                case SyncPDU.REQALL:
                    respondSendAllItems(m);
                    break;
                case SyncPDU.REQ:
                    respondSendRequestedItems(m);
                    break;
                case SyncPDU.SV:
                    sv = true;
                case SyncPDU.CPI:
                    handle(sv, m);
                    break;
                default:
                    break;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        resetTimer(TIMEOUT);
    }