hello .
how can I halt infinte loop (EX:this loop is to capture network packet)
by pressing any buton on keyboard and if I did that action (pressing),I gotta move to a certain label to complete the program.?
if (Buffer == NULL)
{
printf("malloc() failed.\n");
return;
}
do
{
mangobyte = recvfrom(sniffer,Buffer,65536,0,0,0); //Eat as much as u can
if(mangobyte > 0) ProcessPacket(Buffer, mangobyte);
else printf( "recvfrom() failed.\n");
}
while (mangobyte > 0);