I have a C API that talks to hardware and I want to ultimately make calls to that API from a browser. Thinking some to the c++ servlet lib's are too complicated, as is JNI, I thought I could prove the concept like this:
A java servlet gets a simple string message via HTTP. The servlet opens a socket to pass along data via UDP. C process running opens a socket and awaits message. C process receives message, makes call, and send back simple string message via UDP. Servlet passes responce message back to browser.
In short, can a servlet open a socket to talk to native (winsock) code?