<?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 Sharing Data using Message Queues between 32 Bit and 64 Bit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136685#M800147</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;We are passing data using message queues between 32 Bit and 64 Bit Apps..&lt;BR /&gt;&lt;BR /&gt;Our functions looks like this in 64 Bit&lt;BR /&gt;SendMsg(void * SendBuffer , long len , struc handle )&lt;BR /&gt;{&lt;BR /&gt;  msgsnd(handle-&amp;gt;msqid , sendBuffer , len , IPC_NOWAIT);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;In 32 Bit it is recived as&lt;BR /&gt;RecMsg(void * RecvBuffer , long len , struc handle )&lt;BR /&gt;{&lt;BR /&gt;  msgrcv(handle-&amp;gt;msqid, RecvBuffer , len , ANY_MSG,MSG_NOERROR);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The messages are truncated when they are received in the 32 Bit app.&lt;BR /&gt;&lt;BR /&gt;Any Help would be appreciated&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance..&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Dec 2003 17:43:04 GMT</pubDate>
    <dc:creator>Maverick_2</dc:creator>
    <dc:date>2003-12-04T17:43:04Z</dc:date>
    <item>
      <title>Sharing Data using Message Queues between 32 Bit and 64 Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136685#M800147</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;We are passing data using message queues between 32 Bit and 64 Bit Apps..&lt;BR /&gt;&lt;BR /&gt;Our functions looks like this in 64 Bit&lt;BR /&gt;SendMsg(void * SendBuffer , long len , struc handle )&lt;BR /&gt;{&lt;BR /&gt;  msgsnd(handle-&amp;gt;msqid , sendBuffer , len , IPC_NOWAIT);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;In 32 Bit it is recived as&lt;BR /&gt;RecMsg(void * RecvBuffer , long len , struc handle )&lt;BR /&gt;{&lt;BR /&gt;  msgrcv(handle-&amp;gt;msqid, RecvBuffer , len , ANY_MSG,MSG_NOERROR);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The messages are truncated when they are received in the 32 Bit app.&lt;BR /&gt;&lt;BR /&gt;Any Help would be appreciated&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance..&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 17:43:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136685#M800147</guid>
      <dc:creator>Maverick_2</dc:creator>
      <dc:date>2003-12-04T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing Data using Message Queues between 32 Bit and 64 Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136686#M800148</link>
      <description>Part of the problem may be that the two were compiled under different versions of the OS. Prior to 11.11, msg's were limited by the underlying 16-bit (unsigned) data structure at 64K. If the msg's are 64K and up then one workaround would be to set the msgmnb kernel tunable to 64K or less. &lt;BR /&gt;&lt;BR /&gt;Plan B. I would compile a 32-bit bit program that does the initial msgget to create the message queue and then fork(), exec() the "real" 64-bit application.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 18:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136686#M800148</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-12-04T18:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing Data using Message Queues between 32 Bit and 64 Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136687#M800149</link>
      <description>Thanks for the reply.&lt;BR /&gt;Well both the apps are compiled on HPUX11i.&lt;BR /&gt;Do we still need to modify the Kernel params.&lt;BR /&gt;&lt;BR /&gt;Thanks..</description>
      <pubDate>Thu, 04 Dec 2003 18:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136687#M800149</guid>
      <dc:creator>Maverick_2</dc:creator>
      <dc:date>2003-12-04T18:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing Data using Message Queues between 32 Bit and 64 Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136688#M800150</link>
      <description>If you are exceeding 64K messages then that would be my first cut at it. Man msgget for some other approaches but I would chgange the tunable and that would eliminate the 64K boundary as the source of the problem. If confirmed, you can again increase the tunable and try the other solutions suggested in the man pages.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2003 22:56:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136688#M800150</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-12-04T22:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing Data using Message Queues between 32 Bit and 64 Bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136689#M800151</link>
      <description>Thanks&lt;BR /&gt;The msgmnb kernel tunable is currently set to 32K . The messages we are passing from the 64Bit app to the 32 Bit app are pretty small. Does the 64 Bit app pads a lot of additional stuff which breaks the boundry limits.&lt;BR /&gt;Just wanted to ensure that changing the msgmnb kernel tunable  would resolve the issue since it would require a reboot etc.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Dec 2003 10:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sharing-data-using-message-queues-between-32-bit-and-64-bit/m-p/3136689#M800151</guid>
      <dc:creator>Maverick_2</dc:creator>
      <dc:date>2003-12-05T10:32:48Z</dc:date>
    </item>
  </channel>
</rss>

