java equivalent ntohl

Discussion in 'Software' started by shailk, Jun 4, 2009.

  1. shailk

    shailk

    Joined:
    Jun 4, 2009
    Messages:
    1
    java equivalent htonl

    Hi,

    I am using java as client and sending data onto TCP socket to the code written in C language running on Solaris unix server. The integer data being sent as "1099" but when I print the same onto the C code on server it shows me 825243961 whereas I can see the data coming to the port correctly. The same when converted using ntohl shows the same value as 825243961.

    I am not sure whats happening here.

    Can you please help?

    Thanks,
    Shailesh
    Last edited: Jun 4, 2009
    shailk, Jun 4, 2009
    #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. Fernando Kohan

    JAVA VIRTUAL MUCHINE OR SUN JAVA

    Fernando Kohan, Nov 13, 2004, in forum: Firefox
    Replies:
    1
    Views:
    746
    Clark
    Nov 14, 2004
  2. dakine

    MS Java or Sun Java???

    dakine, Jul 20, 2004, in forum: Computer Support
    Replies:
    9
    Views:
    1,435
  3. emerald
    Replies:
    3
    Views:
    12,709
    The Modfather
    May 14, 2006
  4. chuck

    Firefox and Java - but no Java

    chuck, Mar 19, 2007, in forum: Firefox
    Replies:
    1
    Views:
    340
    Peter.Potamus.the.Purple.Hippo@gmail.com
    Mar 19, 2007
  5. -Dan-
    Replies:
    0
    Views:
    530
    -Dan-
    Aug 5, 2005
Loading...

Share This Page