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 14,129 of 14,669   
   Jorgen Grahn to kothari.ashish0@gmail.com   
   Re: Stopping pcap_loop and return to mai   
   10 Jun 14 19:32:39   
   
   From: grahn+nntp@snipabacken.se   
      
   On Tue, 2014-06-10, kothari.ashish0@gmail.com wrote:   
   > hello,   
   >   
   > I have libpcap version 0.6 and it has no pcap_breakloop(), and i   
   > cannot update,   
      
   Surely you can link statically to a newer version?   
      
   > now how can I stop pcap_loop() without using   
   > pcap_breakloop?   
      
   I don't remember how ancient versions of libpcap worked -- modern   
   versions have pcap_get_selectable_fd() and pcap_next_ex() so you can   
   have full control yourself over the event loop.  Did 0.6 not have   
   that?   
      
   You could also read the sources and look at how pcap_loop() is   
   implemented, and maybe get some ideas.   
      
   /Jorgen   
      
   --   
     // Jorgen Grahn    O  o   .   
      
   --- 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