|
-
October 14th, 2003, 09:28 AM
#1
Network Programming (Java to C)
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|