Hi,
I am reading packets of a network and storing them via vectors.
Each packet has an ID number which is NOT unique to each packet but they are randomly spread through the traffic.
I want to read the ID number in each packet received and then create a vector with the name of that ID number. Or, if the vector already exists, pop the packet onto that vector.
E.g. (pseudo-code)
Packet.readID(packet);
Vector <idnumber> = new Vector();
Is this possible?
Any input appreciated.
I am reading packets of a network and storing them via vectors.
Each packet has an ID number which is NOT unique to each packet but they are randomly spread through the traffic.
I want to read the ID number in each packet received and then create a vector with the name of that ID number. Or, if the vector already exists, pop the packet onto that vector.
E.g. (pseudo-code)
Packet.readID(packet);
Vector <idnumber> = new Vector();
Is this possible?
Any input appreciated.