libpgen icon indicating copy to clipboard operation
libpgen copied to clipboard

Add check-script for PGEN-Core, PGEN-IO

Open slankdev opened this issue 10 years ago • 0 comments

u_char buf[1000]; int buflen; /* recv packet */

pgen_packet* pack = &arp; pack->cast(buf, buflen);

if(buflen != pack->len()){ printf("length error \n"); }else{ int res = memcmp(buf, pack->data()); printf("result: %d \n", res); }

slankdev avatar Oct 01 '15 23:10 slankdev