How would I be able to simply establish a connection between a Java Application on one machine and a C application on the other. I am not that familiar with C code...but I need to be able to send strings from my Java application into an application that a team member of mine is writing in C.

How would I set up the communication on the Java and C side. Do I still use the same ServerSocket and Socket classes on the Java side. If so how do I set up the communication on the C side.

I know if I did Java to Java communication I would set up the client side like:
Socket socket = new Socket (addr, SERVER.PORT);
out = socket.getOutputStream();
in = socket.getInputStream();
then just write to the input and output stream like normal I/O.

and the Server side Using the ServerSocket and Server Class.