<?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: C++ and SYS$QIO in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087724#M31010</link>
    <description>As you used the IO$M_CTRL modifier in your $QIO I assume you noticed it in a Telnet device driver include file header. If your intention is to create a TNA device that you map to a DECserver port for example, you might have to drop an eye at:&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/communications/00A1302D-E940C6C9-1C02A1.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/communications/00A1302D-E940C6C9-1C02A1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If your intention is to write $QIO based TCP/IP communications, please have a look at:&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/communications/009E9CF1-C62D69C0-1C0186.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/communications/009E9CF1-C62D69C0-1C0186.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If none of these needs apply to yours, please reply telling us what you intend to do.</description>
    <pubDate>Fri, 10 Oct 2003 18:08:46 GMT</pubDate>
    <dc:creator>Vouters</dc:creator>
    <dc:date>2003-10-10T18:08:46Z</dc:date>
    <item>
      <title>C++ and SYS$QIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087718#M31004</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Why do I keep getting  %SYSTEM-F-BADPARAM, bad parameter value ????????&lt;BR /&gt;&lt;BR /&gt;Here's a niipet of the QIO I am issuing in a C++ object:&lt;BR /&gt;&lt;BR /&gt;    /*&lt;BR /&gt;    **  Active open connection by client:&lt;BR /&gt;    **  Setup extended characteristics buffer&lt;BR /&gt;    **  Issue $QIO to open connection&lt;BR /&gt;    **  IO$SETMODE | IO$M_CTRL | IO$M_STARTUP&lt;BR /&gt;    */&lt;BR /&gt; &lt;BR /&gt;    ecb[0].paraID = 2; /* internet address */&lt;BR /&gt;    ecb[0].val = htonl( inet_network (serverIPAddress) );&lt;BR /&gt; &lt;BR /&gt;    ecb[1].paraID = 3; /* port number */&lt;BR /&gt;    ecb[1].val = port;&lt;BR /&gt; &lt;BR /&gt;    ecb_dsc.dsc$w_length    = sizeof(ecb);&lt;BR /&gt;    ecb_dsc.dsc$b_dtype     = DSC$K_DTYPE_T;&lt;BR /&gt;    ecb_dsc.dsc$b_class     = DSC$K_CLASS_S;&lt;BR /&gt;    ecb_dsc.dsc$a_pointer   = (char *)&amp;amp;ecb;&lt;BR /&gt; &lt;BR /&gt;    memset ( &amp;amp;connect_iosb, 0, sizeof(IOSB_T) );&lt;BR /&gt;&lt;BR /&gt;    status = sys$qio(  0,&lt;BR /&gt;                       ChannelNo,&lt;BR /&gt;                       val,&lt;BR /&gt;                       &amp;amp;connect_iosb,&lt;BR /&gt;                       &amp;amp;processConnectAST, 0,&lt;BR /&gt;                       0,&lt;BR /&gt;                       &amp;amp;ecb_dsc,&lt;BR /&gt;                       0,0,0,0);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It all compiles OK but when the AST fires and I check the connect_iosb status value - it is 20 which means Bad Param Value ???&lt;BR /&gt;&lt;BR /&gt;Please can anyone help ??</description>
      <pubDate>Wed, 08 Oct 2003 02:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087718#M31004</guid>
      <dc:creator>Lai King Leung</dc:creator>
      <dc:date>2003-10-08T02:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: C++ and SYS$QIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087719#M31005</link>
      <description>A couple of things to check. Is the status from SYS$QIO ok? Is the ecb and its descriptor and the iosb still valid when the ast fires (e.g. not on the stack of a routine which has returned)?</description>
      <pubDate>Wed, 08 Oct 2003 04:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087719#M31005</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2003-10-08T04:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: C++ and SYS$QIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087720#M31006</link>
      <description>&lt;BR /&gt;Yeah, make sure that this ecb and stuff it points to is not local to the routine setting up for the ast, but availble when the as executes? make static and see if that helps?&lt;BR /&gt;&lt;BR /&gt;What Driver is this? I check the VMS TCP programmign manual (&lt;A href="http://h71000.www7.hp.com/doc/73final/6529/6529pro_index.html)" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6529/6529pro_index.html)&lt;/A&gt; and find no reference about IO_CTRL | M_STARTUP nor 'ecb's. &lt;BR /&gt;Specifically I wanted to verify you really needed a descriptor, and not an itemlist.&lt;BR /&gt;&lt;BR /&gt;Descriptors in QIOs are not too common, and and ecb does not look like a 'fixed length character string' to me.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2003 09:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087720#M31006</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2003-10-08T09:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: C++ and SYS$QIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087721#M31007</link>
      <description>Hi Lai,&lt;BR /&gt;If I understand what you will make, processConnectAST is a your function; if is it you could write:&lt;BR /&gt; &lt;BR /&gt;status = sys$qio( 0, // param #1: efn&lt;BR /&gt;ChannelNo, // param #2: I/O channel&lt;BR /&gt;val, // param #3: function code&lt;BR /&gt;&amp;amp;connect_iosb, // param #4: I/O status block&lt;BR /&gt;0, // param #5: AST mask, here may be a value&lt;BR /&gt;0, // param #6: no param supplyed&lt;BR /&gt;&amp;amp;processConnectAST, // p. #7: your fun addr&lt;BR /&gt;&amp;amp;ecb_dsc, // p. #8: param 4 your function&lt;BR /&gt;0,0,0,0);&lt;BR /&gt; &lt;BR /&gt;Notice compiler don't warning you because size of parameters are coherents.&lt;BR /&gt; &lt;BR /&gt;Bye&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 04:38:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087721#M31007</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-10-10T04:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: C++ and SYS$QIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087722#M31008</link>
      <description>.. also you can see &lt;A href="http://h71000.www7.hp.com/doc/731FINAL/6136/6136pro_contents.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/6136/6136pro_contents.html&lt;/A&gt;&lt;BR /&gt;Bye&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 04:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087722#M31008</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-10-10T04:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: C++ and SYS$QIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087723#M31009</link>
      <description>$QIO for TCPIP is specified in the IO-manuals for TCPIP, look at &lt;A href="http://h71000.www7.hp.com/doc/73final/6529/6529pro_015.html," target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6529/6529pro_015.html,&lt;/A&gt; starting at chapter 5, it discusses usage of QIO system services.&lt;BR /&gt;You'll find there that:&lt;BR /&gt;- the IO fucntion will be unknown.&lt;BR /&gt;- the parameter set that you use is not correct for IO$_SETMODE.</description>
      <pubDate>Fri, 10 Oct 2003 05:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087723#M31009</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2003-10-10T05:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: C++ and SYS$QIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087724#M31010</link>
      <description>As you used the IO$M_CTRL modifier in your $QIO I assume you noticed it in a Telnet device driver include file header. If your intention is to create a TNA device that you map to a DECserver port for example, you might have to drop an eye at:&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/communications/00A1302D-E940C6C9-1C02A1.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/communications/00A1302D-E940C6C9-1C02A1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If your intention is to write $QIO based TCP/IP communications, please have a look at:&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/communications/009E9CF1-C62D69C0-1C0186.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/communications/009E9CF1-C62D69C0-1C0186.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If none of these needs apply to yours, please reply telling us what you intend to do.</description>
      <pubDate>Fri, 10 Oct 2003 18:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087724#M31010</guid>
      <dc:creator>Vouters</dc:creator>
      <dc:date>2003-10-10T18:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: C++ and SYS$QIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087725#M31011</link>
      <description>Thanks for all the replies - the problem resolved itself when I put /nomember_alignment in the compilation switch.&lt;BR /&gt;&lt;BR /&gt;I found some of the links very useful so once again a big thank-you</description>
      <pubDate>Tue, 14 Oct 2003 02:41:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-and-sys-qio/m-p/3087725#M31011</guid>
      <dc:creator>Lai King Leung</dc:creator>
      <dc:date>2003-10-14T02:41:48Z</dc:date>
    </item>
  </channel>
</rss>

