From: David Vallner Date: 2005-08-13T03:40:14+09:00 Subject: Re: [newbie] Net::Pcap Eric Hodel wrote: > On 29 Jul 2005, at 13:46, David Vallner wrote: > >> I was thinking of cutting my ruby baby teeth on making something >> actually generally useful. So I wonder: Would anyone find a libpcap >> extension any useful? > > > There's this one: > > http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html > > Not that that should stop you! Well, what do you know. I'll go off and see about something else; pondering a web service to serve sudoku puzzles to J2ME clients and track solver statistics... Thanks for the link though, that should come in unbelievably handy next semester, even though I'll probably give the instructor a heart attack by using a library that already does packet parsing. > >> If so, I'd welcome any advice on how to start, possibly some >> pointers on writing C extensions, or any decent examples of DL usage. > > > If you're going to write a C extension, use RubyInline: > > http://www.zenspider.com/ZSS/Products/RubyInline/ > > It lets you avoid all the boring parts and focus on the fun. > Oooh. Aaah. I hope boring parts include "getting the stuff to compile using the MSVC++ toolkit". I admit I'm a very bad C programmer when it comes to gory details like writing proper makefiles. Cheers for all! David Vallner