How to write a Rack adapter with C

I would like to see if it is possible to exchange data between g-wan server and ruby but I need to implement a Rack adapter. I could write one in Ruby, but I need to use C because g-wan API is in C (or Java). Is there any documentation to do that? Does Rack has a C API?


  1. You could open OS pipe from ruby and write some data into it, then receive it from your C program.
  2. It is possible to write extensions to Ruby in C. Just search the Internet for resources on this topic.
  3. Use JRuby, it runs on JVM and allows you to use arbitrary jars. Also, it is really good Ruby VM and has strong community.

Need Your Help

javascript add checkbox-checked values

javascript html css checkbox sum

I have a checkbox section that users can select to add features. I need each input's value to add to a sum to be presented in the #payment-total and #payment-rebill section. Essentially, if they se...

Add image faster in excel using Interop library

c# excel office-interop excel-interop

I am simply putting values in Excel and also images to some certain cells. Sample from my code looks like this ;