void CGprsSynthesize::HandleNS(SPcapSignal& signal) { const UINT8* type = getNsPduType(signal.pdu); if(!type) { printf("wrong format signal\n"); return; } //@zh signal.link = getLinkID(signal.pdu); //@zh switch(*type) { default: printf("unkown ns pdu type : %d\n", *type); break; case 0x02: //NS_RESET case 0x03: //NS_RESET_ACK case 0x04: //NS_BLOCK case 0x05: //NS_BLOCK_ACK case 0x06: //NS_UNBLOCK case 0x07: //NS_UNBLOCK_ACK case 0x08: //NS_STATUS case 0x0a: //NS_ALIVE case 0x0b: //NS_ALIVE_ACK break; case 0x00: //NS_UNITDATA HandleBSSGP(signal); break; } }
covise::covise__Link covise::WSLink::getSerialisable() const { covise::covise__Link p; p.id = getLinkID().toStdString(); p.from = from()->getSerialisable(); p.to = to()->getSerialisable(); return p; }