<?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 TLI in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tli/m-p/2506128#M595528</link>
    <description>We are migrating from SVR4 to HP-UX 11.0. We have the following issues and request for clarification.&lt;BR /&gt;&lt;BR /&gt;1. According to FAQ in  &lt;A href="http://hpux.cs.utah.edu/hppd/FAQ/7-43.html," target="_blank"&gt;http://hpux.cs.utah.edu/hppd/FAQ/7-43.html,&lt;/A&gt;  TLI socket calls are not supported by HP-UX 10.0 onwards.  It is recommended to use XTI instead of TLI.  As the APIs are same, will the behaviour of the call be similar?&lt;BR /&gt;&lt;BR /&gt;2.On UNIX (SVR4) we are having a structure opthdr(sys/socket.h), which is used in the tli call t_optmgmt.&lt;BR /&gt;&lt;BR /&gt;On HP UX we do not have an equivalent for opthdr. &lt;BR /&gt;&lt;BR /&gt;opthdr structure in SVR:&lt;BR /&gt;&lt;BR /&gt;struct opthdr {&lt;BR /&gt;        long            level;  /* protocol level affected */&lt;BR /&gt;        long            name;   /* option to modify */&lt;BR /&gt;        long            len;    /* length of option value */&lt;BR /&gt;}; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3.The code on SVR4 is as follows:&lt;BR /&gt;&lt;BR /&gt;struct t_optmgmt req;&lt;BR /&gt;struct opthdr    *opt;&lt;BR /&gt;int              ret;&lt;BR /&gt;char             buf[sizeof(struct opthdr)];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;memset((char*)buf, '\0',sizeof(buf));&lt;BR /&gt;opt=(struct opthdr *) buf;&lt;BR /&gt;opt-&amp;gt;level=level;&lt;BR /&gt;opt-&amp;gt;name=optname;&lt;BR /&gt;opt-&amp;gt;len=OPTLEN(optlen);&lt;BR /&gt;memcpy(optval,(char *)(opt+1), optlen);&lt;BR /&gt;&lt;BR /&gt;req.flags=T_NEGOTIATE;&lt;BR /&gt;req.opt.maxlen=req.opt.len=OPTLEN(sizeof(struct opthdr) + optlen);&lt;BR /&gt;req.opt.buf=buf;&lt;BR /&gt;&lt;BR /&gt;ret=t_optmgmt(s, &amp;amp;req, &amp;amp;req);    &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above code is not getting compiled on HP-UX 11.0 with aCC compiler.&lt;BR /&gt;&lt;BR /&gt;4.If there exists a server using TLI calls, can a client on another node connect to it using XTI calls. We are getting this doubt because we will be porting a client program to XTI from TLI but our server is going to remain using TLI calls.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Mar 2001 17:39:17 GMT</pubDate>
    <dc:creator>Arun_3</dc:creator>
    <dc:date>2001-03-16T17:39:17Z</dc:date>
    <item>
      <title>TLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tli/m-p/2506128#M595528</link>
      <description>We are migrating from SVR4 to HP-UX 11.0. We have the following issues and request for clarification.&lt;BR /&gt;&lt;BR /&gt;1. According to FAQ in  &lt;A href="http://hpux.cs.utah.edu/hppd/FAQ/7-43.html," target="_blank"&gt;http://hpux.cs.utah.edu/hppd/FAQ/7-43.html,&lt;/A&gt;  TLI socket calls are not supported by HP-UX 10.0 onwards.  It is recommended to use XTI instead of TLI.  As the APIs are same, will the behaviour of the call be similar?&lt;BR /&gt;&lt;BR /&gt;2.On UNIX (SVR4) we are having a structure opthdr(sys/socket.h), which is used in the tli call t_optmgmt.&lt;BR /&gt;&lt;BR /&gt;On HP UX we do not have an equivalent for opthdr. &lt;BR /&gt;&lt;BR /&gt;opthdr structure in SVR:&lt;BR /&gt;&lt;BR /&gt;struct opthdr {&lt;BR /&gt;        long            level;  /* protocol level affected */&lt;BR /&gt;        long            name;   /* option to modify */&lt;BR /&gt;        long            len;    /* length of option value */&lt;BR /&gt;}; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3.The code on SVR4 is as follows:&lt;BR /&gt;&lt;BR /&gt;struct t_optmgmt req;&lt;BR /&gt;struct opthdr    *opt;&lt;BR /&gt;int              ret;&lt;BR /&gt;char             buf[sizeof(struct opthdr)];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;memset((char*)buf, '\0',sizeof(buf));&lt;BR /&gt;opt=(struct opthdr *) buf;&lt;BR /&gt;opt-&amp;gt;level=level;&lt;BR /&gt;opt-&amp;gt;name=optname;&lt;BR /&gt;opt-&amp;gt;len=OPTLEN(optlen);&lt;BR /&gt;memcpy(optval,(char *)(opt+1), optlen);&lt;BR /&gt;&lt;BR /&gt;req.flags=T_NEGOTIATE;&lt;BR /&gt;req.opt.maxlen=req.opt.len=OPTLEN(sizeof(struct opthdr) + optlen);&lt;BR /&gt;req.opt.buf=buf;&lt;BR /&gt;&lt;BR /&gt;ret=t_optmgmt(s, &amp;amp;req, &amp;amp;req);    &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above code is not getting compiled on HP-UX 11.0 with aCC compiler.&lt;BR /&gt;&lt;BR /&gt;4.If there exists a server using TLI calls, can a client on another node connect to it using XTI calls. We are getting this doubt because we will be porting a client program to XTI from TLI but our server is going to remain using TLI calls.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Mar 2001 17:39:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tli/m-p/2506128#M595528</guid>
      <dc:creator>Arun_3</dc:creator>
      <dc:date>2001-03-16T17:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: TLI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tli/m-p/2506129#M595529</link>
      <description>Arun,&lt;BR /&gt;&lt;BR /&gt;Look in /usr/include/sys/xti.h for the&lt;BR /&gt;t_opthdr structure definition.  This is&lt;BR /&gt;outlined in the t_optmgmt(3) man page.&lt;BR /&gt;Also examine xopen_networking(7).&lt;BR /&gt;&lt;BR /&gt;HP provides the TLI API "as is"; most developers I have spoken with ported to XTI instead of taking risks with TLI.  The differences are subtle, however any issues should be answered by the man pages.&lt;BR /&gt;&lt;BR /&gt;Hope this helps in some way to resolve the issue,&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Brian Hackley&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2001 15:00:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tli/m-p/2506129#M595529</guid>
      <dc:creator>Brian Hackley</dc:creator>
      <dc:date>2001-03-20T15:00:01Z</dc:date>
    </item>
  </channel>
</rss>

