Taling to C++ server over socket

Discussion in 'Java' started by Ranjit, Apr 19, 2005.

  1. Ranjit

    Ranjit Guest

    Hi,

    I am trying to figure out a way to have a Java client talk to a C++
    server. I can open a connection with the server and the simple test
    works fine. However I am not sure how to pass the Java types, viz.
    ints/shorts/String to the server so that the server can recognize it in
    the C++ corresponding types (int/short/char[]).
    I read on the net that the DataOutputStream searializes the basic types
    into network byte order which can then be understood by the C++ server.
    However that doesn't seem to work. Am I missing something?

    TIA,
    Ranjit
    Ranjit, Apr 19, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Laszlo Nagy
    Replies:
    1
    Views:
    4,738
    Mark Wooding
    Jan 27, 2009
  2. Jean-Paul Calderone
    Replies:
    0
    Views:
    936
    Jean-Paul Calderone
    Jan 27, 2009
  3. Laszlo Nagy
    Replies:
    0
    Views:
    516
    Laszlo Nagy
    Feb 1, 2009
  4. Steve Holden
    Replies:
    0
    Views:
    638
    Steve Holden
    Feb 1, 2009
  5. Steve Holden
    Replies:
    1
    Views:
    691
Loading...

Share This Page