<?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: connect error in socket programming in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/connect-error-in-socket-programming/m-p/4168364#M692140</link>
    <description>"Connection refused" normally means that&lt;BR /&gt;you've reached the other system, but that&lt;BR /&gt;there's no program listening at the port&lt;BR /&gt;you've specified.&lt;BR /&gt;&lt;BR /&gt;Which port are you expecting to use?&lt;BR /&gt;&lt;BR /&gt;Does "telnet server_host that_port" work, or&lt;BR /&gt;do you get "connection refused"?&lt;BR /&gt;&lt;BR /&gt;What makes you believe that your server is&lt;BR /&gt;running and listening at the port you're&lt;BR /&gt;trying to use?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I need to recall my connect in client&lt;BR /&gt;&amp;gt; repetedly untill the server is up and do&lt;BR /&gt;&amp;gt; accept my connect.&lt;BR /&gt;&lt;BR /&gt;So, what's stopping you from doing that?&lt;BR /&gt;(Of course, you can burn a lot of CPU and&lt;BR /&gt;network resources by retrying this in a&lt;BR /&gt;wait-less loop.  Also, if no one is listening&lt;BR /&gt;at the other end, retrying is not likely to&lt;BR /&gt;change much.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] but ended up in vain.&lt;BR /&gt;&lt;BR /&gt;What does that mean?  Symptom descriptions&lt;BR /&gt;like "It didn't work" are approximately&lt;BR /&gt;useless.</description>
    <pubDate>Wed, 26 Mar 2008 15:14:26 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-03-26T15:14:26Z</dc:date>
    <item>
      <title>connect error in socket programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connect-error-in-socket-programming/m-p/4168363#M692139</link>
      <description>Hi frns,&lt;BR /&gt;&lt;BR /&gt;I have written a socket programming in C to interact with java. I do act as a client and java acts as a server &amp;amp; java is getting invoked from my C code.&lt;BR /&gt;&lt;BR /&gt;When i connect it is a non blocking call and it returns -1(Connection refused). Could you please suggest some soln for this. &lt;BR /&gt;&lt;BR /&gt;I would like to add one more thing... I need to recall my connect in client repetedly untill the server is up and do accept my connect.&lt;BR /&gt;&lt;BR /&gt;Note: we tried sleep before the connect and while but ended up in vain.</description>
      <pubDate>Wed, 26 Mar 2008 15:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connect-error-in-socket-programming/m-p/4168363#M692139</guid>
      <dc:creator>pradeepraj</dc:creator>
      <dc:date>2008-03-26T15:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: connect error in socket programming</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connect-error-in-socket-programming/m-p/4168364#M692140</link>
      <description>"Connection refused" normally means that&lt;BR /&gt;you've reached the other system, but that&lt;BR /&gt;there's no program listening at the port&lt;BR /&gt;you've specified.&lt;BR /&gt;&lt;BR /&gt;Which port are you expecting to use?&lt;BR /&gt;&lt;BR /&gt;Does "telnet server_host that_port" work, or&lt;BR /&gt;do you get "connection refused"?&lt;BR /&gt;&lt;BR /&gt;What makes you believe that your server is&lt;BR /&gt;running and listening at the port you're&lt;BR /&gt;trying to use?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I need to recall my connect in client&lt;BR /&gt;&amp;gt; repetedly untill the server is up and do&lt;BR /&gt;&amp;gt; accept my connect.&lt;BR /&gt;&lt;BR /&gt;So, what's stopping you from doing that?&lt;BR /&gt;(Of course, you can burn a lot of CPU and&lt;BR /&gt;network resources by retrying this in a&lt;BR /&gt;wait-less loop.  Also, if no one is listening&lt;BR /&gt;at the other end, retrying is not likely to&lt;BR /&gt;change much.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] but ended up in vain.&lt;BR /&gt;&lt;BR /&gt;What does that mean?  Symptom descriptions&lt;BR /&gt;like "It didn't work" are approximately&lt;BR /&gt;useless.</description>
      <pubDate>Wed, 26 Mar 2008 15:14:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connect-error-in-socket-programming/m-p/4168364#M692140</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-03-26T15:14:26Z</dc:date>
    </item>
  </channel>
</rss>

