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!

> 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.

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04