Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-users: [Wireshark-users] How to exit pcap_loop?

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Goran Štrok <goran.strok@xxxxxxxxx>
Date: Thu, 26 Apr 2007 10:55:37 +0200

Title: How to exit pcap_loop?

I want to end pcap_loop when push any (or specific) button on keyboard. How is this possible? Any suggestion? I use:
pcap_loop(handle, -1, got_packet, (unsigned char *)file4);


and want to capture packets until one of button is pushed. Maybe any other function?

Thanks

  • Prev by Date: Re: [Wireshark-users] Writing/sharing dissectors
  • Next by Date: Re: [Wireshark-users] bad handling of DHCP option 90?
  • Previous by thread: Re: [Wireshark-users] Writing/sharing dissectors
  • Next by thread: [Wireshark-users] Wireshark OSX
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation