<?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 Setting timeout for client program in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-timeout-for-client-program/m-p/2780700#M584159</link>
    <description>Hi,&lt;BR /&gt;I am facing a problem that my client program and server program wainting in recv statment, I came to this point due to the poor design of the server program ( the code not available ), &lt;BR /&gt;Any one can helping me to set the timeout of the socket (in recv mode) ?&lt;BR /&gt;I've not see any socket option ( setsockopt ) for that purpose !!&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Majeed Lardhi</description>
    <pubDate>Tue, 06 Aug 2002 15:22:47 GMT</pubDate>
    <dc:creator>Abdul Majeed Lardhi</dc:creator>
    <dc:date>2002-08-06T15:22:47Z</dc:date>
    <item>
      <title>Setting timeout for client program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-timeout-for-client-program/m-p/2780700#M584159</link>
      <description>Hi,&lt;BR /&gt;I am facing a problem that my client program and server program wainting in recv statment, I came to this point due to the poor design of the server program ( the code not available ), &lt;BR /&gt;Any one can helping me to set the timeout of the socket (in recv mode) ?&lt;BR /&gt;I've not see any socket option ( setsockopt ) for that purpose !!&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Majeed Lardhi</description>
      <pubDate>Tue, 06 Aug 2002 15:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-timeout-for-client-program/m-p/2780700#M584159</guid>
      <dc:creator>Abdul Majeed Lardhi</dc:creator>
      <dc:date>2002-08-06T15:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timeout for client program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-timeout-for-client-program/m-p/2780701#M584160</link>
      <description>If you don't have the code then there's probably not a lot you can do - recv() by default in blocking mode will wait as long as the connection is alive. &lt;BR /&gt;&lt;BR /&gt;The normal way to enforce a timeout on a recv() call is to put the socket in non-blocking mode with fcntl() or ioctl(), then use select() with the appropriate timeout argument to determine when the socket is ready for recv'ing.&lt;BR /&gt;&lt;BR /&gt;See this page for loads more info on sockets programming:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.ibrado.com/sock-faq/" target="_blank"&gt;http://www.ibrado.com/sock-faq/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 06 Aug 2002 15:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-timeout-for-client-program/m-p/2780701#M584160</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-08-06T15:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timeout for client program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-timeout-for-client-program/m-p/2780702#M584161</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;I dont have the code of the server program !!!&lt;BR /&gt;&lt;BR /&gt;I expect there socket option to set instead of usinf select&lt;BR /&gt;&lt;BR /&gt;advise pls.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Aug 2002 16:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-timeout-for-client-program/m-p/2780702#M584161</guid>
      <dc:creator>Abdul Majeed Lardhi</dc:creator>
      <dc:date>2002-08-06T16:03:29Z</dc:date>
    </item>
  </channel>
</rss>

