home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,452 of 14,669   
   Barry Margolin to lancer6238@yahoo.com   
   Re: Stopping pcap_loop and return to mai   
   03 Mar 10 22:24:35   
   
   771fea78   
   From: barmar@alum.mit.edu   
      
   In article   
   ,   
    "lancer6238@yahoo.com"  wrote:   
      
   > Hi all,   
   >   
   > I have a pcap_loop function in another function, that captures packets   
   > until the user stops it, i.e.   
   > void functionA()   
   > {   
   >    pcap_loop(handle, -1, callback, NULL);   
   >    ...   
   > }   
   >   
   > Is it possible to stop the packet capturing process, and return to   
   > functionA()? I've used Ctrl-C but that just terminates the whole   
   > program.   
      
   pcap_breakloop()   
      
   --   
   Barry Margolin, barmar@alum.mit.edu   
   Arlington, MA   
   *** PLEASE don't copy me on replies, I'll read them in the group ***   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca