> Thanks for all the input. I had not considered the case of multiple > interfaces, thanks Yoann. I'm also using ncurses, so the X toolkits > tip I will save for later use, thanks Guy.
With curses, you'd have your own main loop. In that loop, you'd do a "select()" or "poll()" on the descriptor or descriptors returned from "pcap_fileno()", as well as on file descriptor 0, that being the descriptor from which curses reads its input (unless you've used "newterm()", in which case you'd use the file descriptor associated with the third argument; if you have more than one screen, you'd select from all of them). If file descriptor 0 allows input, you'd do a "getch()" (or "wgetch()", or "mvgetch()", or "mvwgetch()") and process the input. You'd probably want to use "nodelay()" to turn on no-delay mode on the curses window. - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe
