|
Hi I have a ILERPG Socket program, that sends data in the form of data structures to the third party API (written in delphi). The data is transmitting fine, but reaching in different format. Example : Input: Field A = 0 200 1st Byte 2nd Byte Where the Field A is declared as Unsigned 5 U 0 in RPG Pgm. When it transmit over a socket, the bytes are swapping and becoming 200 0. Result: Field A = 200 0 1st Byte 2nd Byte This is the problem I am getting. To do the bytes swapping, Can I use htons () in RPG Pgm. If yes, please explain with examples. Thanks & Regards Lakshmi Confidentiality Caution ======================= Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Opinions, conclusions and other information in this message that is not of an official nature shall be deemed as neither given nor endorsed by SGX unless indicated by an authorised representative independent of this message.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.