Socket Communication between java client and c++ server
In my project,I want to do the following:
1.Sending datas from client to server.
2.Getting the response from server to client.
I written the client in java.but the server is in c++.
Is it possible to communicate with the server using java codings itself?
Im able to send the data from my java client to the server.
but unable to get back the datas from server to client.
Can anyone tell me how to do this?
thanks a lot
Make your Socket connection then get the input/output streams created from the connection. If network communication was limited to the same language, the internet would be in a world of hurt.
is ur java program expecting string or bytes from c program.
wrap the java iostream object to accept bytes.
i think that can solve ur problem.
How to pass structure between Java client and c++ server using socket
I have a Java client (JSP) and wanted to communicate with c++ server and pass a data list(data structure) between the two using socket. I need a sample code and the way to doing that.
By lwinn213 in forum Java
Last Post: 10-23-2008, 01:14 PM
By Varsha1717 in forum Java
Last Post: 06-03-2008, 06:55 AM
Last Post: 06-02-2006, 09:00 PM
By Calderara Serge in forum Enterprise
Last Post: 07-24-2002, 12:40 AM
By Sreedhar Kaluva in forum Database
Last Post: 02-13-2001, 08:15 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center