Re: Socket connection between Java and C possible?



On 29 Apr 2006 03:11:16 -0700, "Ben" <bs2k1@xxxxxxxxxx> wrote, quoted
or indirectly quoted someone who said :

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

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: [VulnWatch] The Java applet sandbox and stateful firewalls
    ... Is the Java Sandbox able to create outgoing connections on ports like 445? ... >This is a passive attack. ... The applet initiates a TCP connection back to the originating ... > A FTP server on the same machine that hosts the originating web ...
    (Bugtraq)
  • [Full-disclosure] Re: [VulnWatch] The Java applet sandbox and stateful firewalls
    ... Is the Java Sandbox able to create outgoing connections on ports like 445? ... >This is a passive attack. ... The applet initiates a TCP connection back to the originating ... > A FTP server on the same machine that hosts the originating web ...
    (Full-Disclosure)
  • Re: Accessing DB2 with Java?
    ... Seems to me that you might want to sniff the connection to see what's ... We downloaded and installed the Java SDK ... got from IBM. ... connect to the JDBC listener on the IBM, ...
    (comp.sys.hp.mpe)
  • Re: connecting to a database
    ... so I'm attempting to code it up in java. ... I have no idea how to set up a connection. ... connection to an Access Database that they would be willing to post. ... sql. ...
    (comp.lang.java.programmer)
  • Re: Spawning Server in Java
    ... You will not be able to achieve this using standard Java mechanisms. ... remaining option is to pass the descriptor yourself. ... need to create a unix domain socket connection between ... connection handling code in Java. ...
    (comp.lang.java.programmer)