<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in data transfer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670482#M554754</link>
    <description>... and the bad news about "fixing" endian problems is that as soon as you get it working on client platform "A", you just broke "B". Floating point representation is even worse. XDR completely and truly fixes your problem.</description>
    <pubDate>Mon, 14 Nov 2005 18:20:28 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-11-14T18:20:28Z</dc:date>
    <item>
      <title>Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670473#M554745</link>
      <description>Hello everybody,&lt;BR /&gt;    I am sending a 512 byte data packet which is of type unsigned short from client to HP-UX server through socket communication.The sever is receiving the data packet but when we display the buffer in HP-UX server it is containing garbage values but not the exact values from client.What is the problem?.Please help me out.Advanced Thanks for reply.</description>
      <pubDate>Sun, 13 Nov 2005 02:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670473#M554745</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2005-11-13T02:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670474#M554746</link>
      <description>Suggest you use tcpdump or ethereal to analyze the traffic. Perhaps post the output if you've already done so.&lt;BR /&gt;&lt;BR /&gt;Not a lot to go on now. Many possible causes.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 13 Nov 2005 02:49:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670474#M554746</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-13T02:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670475#M554747</link>
      <description>Hello, How do you store your data in the buffer cache ? Are there any memory corruption happening ? Run the server end in GDB and get the values. Also, you can use tcpdump (cli) or Ethereal (X11) as SEP suggested. You can download them from, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Sun, 13 Nov 2005 06:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670475#M554747</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-11-13T06:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670476#M554748</link>
      <description>&lt;BR /&gt;Since you mention "unsigned short"... could the be a confusion on little endian vs big-endian? That would make a 1, show as 256, 2 as 512, 3 as 768 and so on.&lt;BR /&gt;Basically.. do the bytes in he shorts appear as they should, but in the wrong place within the short?&lt;BR /&gt;Dump the bytestream through od to verify, or just attempt a to manually byteswap a few values.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Nov 2005 13:23:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670476#M554748</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-11-13T13:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670477#M554749</link>
      <description>With so little to go on, it's difficult to be sure but in any event when sending any data that might have to cross platforms it's always a good idea to go through the XDR (eXternal Data Representation) routines on both ends to avoid just this kind of problem.</description>
      <pubDate>Sun, 13 Nov 2005 15:38:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670477#M554749</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-13T15:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670478#M554750</link>
      <description>Hello Everybody,&lt;BR /&gt;   Thanks for the reply.I am facing same problem what Hein van den has mentioned.If i send a value of 3 it is displaying as 768.Can you give more information on how to solve this solution.Advaced thanks for the reply.</description>
      <pubDate>Mon, 14 Nov 2005 04:53:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670478#M554750</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2005-11-14T04:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670479#M554751</link>
      <description>&lt;BR /&gt;read all about it: &lt;A href="http://en.wikipedia.org/wiki/Little_endian" target="_blank"&gt;http://en.wikipedia.org/wiki/Little_endian&lt;/A&gt;&lt;BR /&gt;and google, and computer textbooks,  and...&lt;BR /&gt;&lt;BR /&gt;Best thing is probably to NOT send your data to an other system in binary format, but using some transportable protocol as mentioned before. Depending on the volume of data, with respect to the byte/secons as well as the number of fields you may just want to send an ascii representation of the number in fiexed fields or seperated format.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein.</description>
      <pubDate>Mon, 14 Nov 2005 06:49:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670479#M554751</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-11-14T06:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670480#M554752</link>
      <description>Something like Stevens' et al's Unix Network Programming would probably be a good reference to have.  As suggested, you _probably_ have an issue with endianess between two systems.  All HP-UX systems are "big endian" and many clients (eg x86 boxes) are "little endian"&lt;BR /&gt;&lt;BR /&gt;Also, you should be careful with how your client may or may not "pack" data in things like structures - there may be padding in the structures and if you simply send from &amp;amp;structure, sizeof(structure) you will send the padding as well, which your remote system will try to interpret as real data.</description>
      <pubDate>Mon, 14 Nov 2005 12:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670480#M554752</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-11-14T12:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670481#M554753</link>
      <description>As I mentioned before, XDR is the "correct" solution to your problem. This will allow you to transfer complex data in a completely machine-independent format. Man xdr for details. You other option is to convert verything to text and use string to numeric conversion routines on the receiving end but XDR is the cleaner approach.</description>
      <pubDate>Mon, 14 Nov 2005 18:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670481#M554753</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-14T18:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in data transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670482#M554754</link>
      <description>... and the bad news about "fixing" endian problems is that as soon as you get it working on client platform "A", you just broke "B". Floating point representation is even worse. XDR completely and truly fixes your problem.</description>
      <pubDate>Mon, 14 Nov 2005 18:20:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-data-transfer/m-p/3670482#M554754</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-14T18:20:28Z</dc:date>
    </item>
  </channel>
</rss>

