-
Help!!!!
can u tell me what this means?
connect_time= pkt->data[off+3];
connect_time= (connect_time<<8) + pkt->data[off+2];
connect_time= (connect_time<<8) + pkt->data[off+1];
connect_time= (connect_time<<8) + pkt->data[off];
off+= sizeof(connect_time);
im trying to figure out what connect_time would be
-
What it's doing is taking the four bytes from pkt->data, and putting them into a four-byte variable.
The << 8 means to shift the data 1 byte to the left, so that you can add the next byte into the blank hole you've made.