But I have a problem with mentioned container- every time I insert segment to inner QMap I have to copy whole inner QMap from outer QHash, insert segment to it and insert whole QMap to QHash. Is it possible to insert TCPSegment without copying inner table?
TCPConnectionID connectionID(srcIP,srcPort,dstIP,dstPort);
QMap<quint32, TCPSegment*> tcpSegmentMap = tcpConnectionHash.value(connectionID);
tcpSegmentMap.insertMulti(segment.sequenceNumber(),new TCPSegment(...));
tcpConnectionHash.insert(connectionID,tcpSegmentMap);
TCPConnectionID connectionID(srcIP,srcPort,dstIP,dstPort);
QMap<quint32, TCPSegment*> tcpSegmentMap = tcpConnectionHash.value(connectionID);
tcpSegmentMap.insertMulti(segment.sequenceNumber(),new TCPSegment(...));
tcpConnectionHash.insert(connectionID,tcpSegmentMap);
To copy to clipboard, switch view to plain text mode
Bookmarks