aspose file tools*
The moose likes Ruby and the fly likes Raw packet capturing in JRuby Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Raw packet capturing in JRuby" Watch "Raw packet capturing in JRuby" New topic
Author

Raw packet capturing in JRuby

Bill Reiflin
Greenhorn

Joined: Dec 08, 2009
Posts: 2
The pcap library in the Jruby gem list does not work in JRuby due to C extensions, does anyone know if another library exists for JRuby?

I haven't tried Jpcap, but since it also relies on a C library I am assuming won't work either, or am I wrong about JNI not working in JRuby?

On a side note, I am having a tough time finding a JRuby forum with lots of posters. All there seems to be is IRC and mailing lists, both of which are annoying and messy.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

C libraries aren't completely off-limits thanks to FFI.

And I think jpcap should work anyway. My understanding is if it works in Java, it will work in JRuby.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Raw packet capturing in JRuby