aspose file tools
The moose likes Ruby and the fly likes Raw packet capturing in JRuby Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Reply 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: 4725

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Raw packet capturing in JRuby
 
Similar Threads
Java with Ruby
Ruby - App Server
Getting JRuby working in Ubuntu with Ruby Development Tools
Question - Best choice for framework
JRuby & Rails