Socket connection between Java and C possible?

B

Ben

Hi,

Just wondering if anyone knows if it is possible to create a socket
connection between a C program and a Java program.

Thanks.

Ben.
 
R

Roedy Green

Just wondering if anyone knows if it is possible to create a socket
connection between a C program and a Java program.

Of course. It is just an ordinary TCP-IP socket.
Usually you would find it easier to make the Java end behave as the
server, but you can do it the other way. They may be on the same
machine or remote.

for sample code for the Java end see
http://mindprod.com/applets/fileio.html
 
G

Gordon Beaton

Just wondering if anyone knows if it is possible to create a socket
connection between a C program and a Java program.

What happened when you tried?

TCP sockets are independent of any programming language. How well do
you think the internet would work if that weren't the case?

/gordon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top