• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Raw packet capturing in JRuby

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic