Socket Communication between java client and c++ server


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Socket Communication between java client and c++ server

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    54

    Socket Communication between java client and c++ server

    HI,
    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

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    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.

  3. #3
    Join Date
    Aug 2006
    Posts
    12
    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.

  4. #4
    Join Date
    May 2008
    Posts
    1

    How to pass structure between Java client and c++ server using socket

    Hi,
    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.
    Please help.

    Thanks
    Originator

Similar Threads

  1. URGENT: FTP Client / Server using RMI
    By lwinn213 in forum Java
    Replies: 2
    Last Post: 10-23-2008, 01:14 PM
  2. Replies: 1
    Last Post: 06-03-2008, 06:55 AM
  3. Replies: 3
    Last Post: 06-02-2006, 09:00 PM
  4. Client server communication with Winsock
    By Calderara Serge in forum Enterprise
    Replies: 1
    Last Post: 07-24-2002, 12:40 AM
  5. Replies: 0
    Last Post: 02-13-2001, 08:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center