<?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: getpeername API() in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726733#M550073</link>
    <description>which operating system you are using? Is it your own application or from any third party or build in? Do you have the code for getpeername() call?&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
    <pubDate>Wed, 08 Feb 2006 01:29:25 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2006-02-08T01:29:25Z</dc:date>
    <item>
      <title>getpeername API()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726732#M550072</link>
      <description>I am using the API getpeername() in my multi-threaded application.&lt;BR /&gt;&lt;BR /&gt;The API returns with return code zero, however does not fill in the struct addr or value of length.&lt;BR /&gt;&lt;BR /&gt;Is this an expected behavior by the API, else, what could I suspect? &lt;BR /&gt;The other APIs like getsockname() etc return correct value just before this call. So if their is a issue with the peer socket, it would report it, right?&lt;BR /&gt;&lt;BR /&gt;I am setting the length to the struct sockaddr before calling the API, which is reset to zero post call.&lt;BR /&gt;&lt;BR /&gt;Any pointers/ link to known issues/ patches required will be of help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shweta</description>
      <pubDate>Wed, 08 Feb 2006 01:08:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726732#M550072</guid>
      <dc:creator>Shweta_3</dc:creator>
      <dc:date>2006-02-08T01:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: getpeername API()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726733#M550073</link>
      <description>which operating system you are using? Is it your own application or from any third party or build in? Do you have the code for getpeername() call?&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 08 Feb 2006 01:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726733#M550073</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-08T01:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: getpeername API()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726734#M550074</link>
      <description>Hi Shweta, &lt;BR /&gt;&lt;BR /&gt;Hope you are using HP-UX. Take a look at this links, it may help you if you are transisting your apps from Solaris to HP-UX or Linux to HP-UX. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://devrsrc1.external.hp.com/STKS/cgi-bin/man2html?debug=0&amp;amp;manpage=/usr/share/man/man2.Z/getpeername.2" target="_blank"&gt;http://devrsrc1.external.hp.com/STKS/cgi-bin/man2html?debug=0&amp;amp;manpage=/usr/share/man/man2.Z/getpeername.2&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://devrsrc1.external.hp.com/STKL/impacts/i38.html" target="_blank"&gt;http://devrsrc1.external.hp.com/STKL/impacts/i38.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 08 Feb 2006 02:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726734#M550074</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-08T02:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: getpeername API()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726735#M550075</link>
      <description>Thanks, and sorry for not being more specific.&lt;BR /&gt;Yes I am running this on a HP-UX B.11.11 U 9000/800&lt;BR /&gt;&lt;BR /&gt;I did go though the manual page, however didn't catch anything in particular.&lt;BR /&gt;&lt;BR /&gt;Using a simple socket program, the API does return having filled in the addr structure properly. However not in my application, I am not sure what to suspect. &lt;BR /&gt;I tried both the combinations&lt;BR /&gt;a)&lt;BR /&gt;struct sockaddr and sizeof(struct sockaddr)&lt;BR /&gt;b)&lt;BR /&gt;struct sockaddr_un and sizeof(struct sockaddr_un)&lt;BR /&gt;&lt;BR /&gt;Anything more I may provide?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Feb 2006 04:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726735#M550075</guid>
      <dc:creator>Shweta_3</dc:creator>
      <dc:date>2006-02-08T04:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: getpeername API()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726736#M550076</link>
      <description>Hi Shweta, &lt;BR /&gt;&lt;BR /&gt;It could be due to incompatible types, if possible attach your sample code to take a look at it. &lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;&lt;BR /&gt;P.S Assign points.</description>
      <pubDate>Wed, 08 Feb 2006 04:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726736#M550076</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-08T04:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: getpeername API()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726737#M550077</link>
      <description>When you are compiling your multi-threaded application, are you setting -D_REENTRANT?  You are linking against -lpthread right?&lt;BR /&gt;&lt;BR /&gt;Have you looked at your application's getpeername() call in a verbose tusc trace (tusc -v)?&lt;BR /&gt;&lt;BR /&gt;BTW, unless you are completely disassociated from the code that made the accept() call, you should already have the peer information from what is returned by the accept() call (or for that matter from what you passed-in to a connect() call)&lt;BR /&gt;&lt;BR /&gt;Also, you might check what sizeof(struct sockaddr) happens to be comapred with sizeof (struct sockaddr_in) if this is an IPv4 application or struct sockaddr_in6 if this is IPv6...</description>
      <pubDate>Wed, 08 Feb 2006 20:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getpeername-api/m-p/3726737#M550077</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-02-08T20:50:49Z</dc:date>
    </item>
  </channel>
</rss>

