Java and Visual C++ soket programming

Hi everybody!!!I have a question about socket programming. Please help me.I have a client written by Java and a server written by VC++. Please tell me some conditions to connect them.Thanks for help!!!
[229 byte] By [sunboy12ly@yahoo.coma] at [2007-10-3 6:40:16]
# 1

Yes, setup your C++ socket, and setup a Java socket. That's it.

In Java, we use the Socket(String ip_or_host, int port) to connect a client socket.

Socket socket = new Socket("java.sn.com", 80);

That code would create a socket connection to the Java web server port 80 (HTTP).

You simply set your C++ socket as a server socket, and listen on whatever port you want to run your service on. Then, set the java socket to connect to that port on that machine.

watertownjordana at 2007-7-15 1:29:07 > top of Java-index,Archived Forums,Socket Programming...
# 2
> Please tell me some conditions to connect them.There is no special conditions. You should just connect from client and accept connections on server.Post your actual questions if any. Like "I started server but unable to connect from client" :)
Michael.Nazarov@sun.coma at 2007-7-15 1:29:07 > top of Java-index,Archived Forums,Socket Programming...