Originally posted by Priya Vasudevan:
How do I pass parameters from a C program to a Java code using sockets??
If I understand the question correctly, u r trying to communicate using sockets between a server written in C program, and client written in Java.
If that is the case, then u shouldn't be getting garbled values. I had once communicated with telnet application, initially I also got some junk values, becoz of some problem with socket connection (It is difficult to debug, in such cases), but after making appropriate corrections in the code, it worked fine.
For the 2nd part of your question, refer this link
Interacting with Java from the Native side regards,
Gopals.