i have solved my problem by myself.
Thanks advance On Fri, Aug 19, 2011 at 11:58 AM, NaveenShrivastva < [email protected]> wrote: > > #define HTONL(n) (((((unsigned long)(n > <http://www.jbox.dk/sanos/source/include/net/inet.h.html#:55>) & 0xFF)) << > 24) | \ ((((unsigned long)(n > <http://www.jbox.dk/sanos/source/include/net/inet.h.html#:55>) & 0xFF00)) << > 8) | \ ((((unsigned long)(n > <http://www.jbox.dk/sanos/source/include/net/inet.h.html#:55>) & 0xFF0000)) > >> 8) | \ ((((unsigned long)(n > <http://www.jbox.dk/sanos/source/include/net/inet.h.html#:55>) & 0xFF000000)) > >> 24))#define NTOHL(n) (((((unsigned long)(n > <http://www.jbox.dk/sanos/source/include/net/inet.h.html#:60>) & 0xFF)) << > 24) | \ ((((unsigned long)(n > <http://www.jbox.dk/sanos/source/include/net/inet.h.html#:60>) & 0xFF00)) << > 8) | \ ((((unsigned long)(n > <http://www.jbox.dk/sanos/source/include/net/inet.h.html#:60>) & 0xFF0000)) > >> 8) | \ ((((unsigned long)(n > <http://www.jbox.dk/sanos/source/include/net/inet.h.html#:60>) & 0xFF000000)) > >> 24)) > > > On Fri, Aug 19, 2011 at 11:43 AM, NaveenShrivastva < > [email protected]> wrote: > >> Thanks, >> >> i am trying to customize C++ code in java. >> >> >> On Fri, Aug 19, 2011 at 11:38 AM, Zsolt Vasvari <[email protected]>wrote: >> >>> Get the source code to the C function and move it to Java, should be >>> trivial. Of course, respect any licensing restrictions, if any. >>> >>> >>> >>> On Aug 19, 2:03 pm, N K Shrivastva <[email protected]> >>> wrote: >>> > Hello Developers, >>> > >>> > Please help me, >>> > >>> > htonl() = host to network long . This method convert host to network >>> > in C++/c language >>> > >>> > i want same conversion in java host to network some one plz help me . >>> > >>> > Thanks, >>> > Naveen >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> >> >> >> >> - >> >> Naveen Shrivastava >> >> > Please help me getting this perfect code in C++ > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

