After sending The Packet with service == 0x4F and status == 0 then wait for the following reply:
Code:
if ((service == 0x4D) || (service ==0x4F)) {
switch(status) {
case -1:
case 0:
case 1:
case 11:
printf(“Onlinen”);
break;
case 2:
printf(“Offlinen”);
break;
case 8:
printf(“Invalid namen”);
break;
default:
break;
}
}
Enumerate to flavor. If the above doesn’t make sense, I can’t help you.