- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem in data transfer
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2005 06:29 PM
11-12-2005 06:29 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2005 06:49 PM
11-12-2005 06:49 PM
Re: Problem in data transfer
Not a lot to go on now. Many possible causes.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2005 10:52 PM
11-12-2005 10:52 PM
Re: Problem in data transfer
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 05:23 AM
11-13-2005 05:23 AM
Re: Problem in data transfer
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.
Basically.. do the bytes in he shorts appear as they should, but in the wrong place within the short?
Dump the bytestream through od to verify, or just attempt a to manually byteswap a few values.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 07:38 AM
11-13-2005 07:38 AM
Re: Problem in data transfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 08:53 PM
11-13-2005 08:53 PM
Re: Problem in data transfer
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 10:49 PM
11-13-2005 10:49 PM
Solutionread all about it: http://en.wikipedia.org/wiki/Little_endian
and google, and computer textbooks, and...
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.
Regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 04:57 AM
11-14-2005 04:57 AM
Re: Problem in data transfer
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 &structure, sizeof(structure) you will send the padding as well, which your remote system will try to interpret as real data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 10:01 AM
11-14-2005 10:01 AM
Re: Problem in data transfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 10:20 AM
11-14-2005 10:20 AM