<?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: How can i make an inetd process? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797230#M547597</link>
    <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I have given all entries.&lt;BR /&gt;Actually now I have noticed that the connection is establishing, but the bind in the server is failing</description>
    <pubDate>Wed, 31 May 2006 05:15:24 GMT</pubDate>
    <dc:creator>msbinu</dc:creator>
    <dc:date>2006-05-31T05:15:24Z</dc:date>
    <item>
      <title>How can i make an inetd process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797228#M547595</link>
      <description>Hi All ,&lt;BR /&gt;&lt;BR /&gt;I have a client an server among which i want to make the server an inetd process.&lt;BR /&gt;&lt;BR /&gt;I have enries in etc/services and etc/inetd.conf&lt;BR /&gt;The enries looks like below&lt;BR /&gt;etc/services&lt;BR /&gt;servername        5551/tcp&lt;BR /&gt;etc/inetd.conf&lt;BR /&gt;&lt;BR /&gt;servername  stream tcp nowait  root /binu&lt;BR /&gt;&lt;BR /&gt;Now if I try to run my client ,the connection with server is not getting established&lt;BR /&gt;&lt;BR /&gt;My client code to connect ins ome thng like this&lt;BR /&gt;sd = socket (AF_INET, SOCK_STREAM, 0);       CHK_ERR(sd, "socket");&lt;BR /&gt;&lt;BR /&gt;  memset (&amp;amp;sa, '\0', sizeof(sa));&lt;BR /&gt;  sa.sin_family      = AF_INET;&lt;BR /&gt;  sa.sin_addr.s_addr = inet_addr ("127.0.0.1");   /* Server IP */&lt;BR /&gt;  sa.sin_addr.s_addr = inet_addr ("164.164.27.88");&lt;BR /&gt;  sa.sin_port        = htons     (5551);          /* Server Port number */&lt;BR /&gt;&lt;BR /&gt;  err = connect(sd, (struct sockaddr*) &amp;amp;sa,&lt;BR /&gt;                sizeof(sa));                   CHK_ERR(err, "connect");&lt;BR /&gt;&lt;BR /&gt;  /* ----------------------------------------------- */&lt;BR /&gt;  /* Now we have TCP conncetion. Start SSL negotiation. */&lt;BR /&gt;&lt;BR /&gt;  ssl = SSL_new (ctx);                         CHK_NULL(ssl);&lt;BR /&gt;  SSL_set_fd (ssl, sd);&lt;BR /&gt;  err = SSL_connect (ssl);                     CHK_SSL(err);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and my server code is like below&lt;BR /&gt;&lt;BR /&gt; /* Prepare TCP socket for receiving connections */&lt;BR /&gt;&lt;BR /&gt;  listen_sd = socket (AF_INET, SOCK_STREAM, 0);   CHK_ERR(listen_sd, "socket");&lt;BR /&gt;&lt;BR /&gt;  memset (&amp;amp;sa_serv, '\0', sizeof(sa_serv));&lt;BR /&gt;  sa_serv.sin_family      = AF_INET;&lt;BR /&gt;  sa_serv.sin_addr.s_addr = INADDR_ANY;&lt;BR /&gt;  sa_serv.sin_port        = htons (5551);          /* Server Port number */&lt;BR /&gt;&lt;BR /&gt;  err = bind(listen_sd, (struct sockaddr*) &amp;amp;sa_serv,&lt;BR /&gt;             sizeof (sa_serv));                   CHK_ERR(err, "bind");&lt;BR /&gt;&lt;BR /&gt;  /* Receive a TCP connection. */&lt;BR /&gt;&lt;BR /&gt;  err = listen (listen_sd, 5);                    CHK_ERR(err, "listen");&lt;BR /&gt;&lt;BR /&gt;  client_len = sizeof(sa_cli);&lt;BR /&gt;  //Binu&lt;BR /&gt;  sd = accept (listen_sd, (struct sockaddr*) &amp;amp;sa_cli,(int *) &amp;amp;client_len);&lt;BR /&gt;  CHK_ERR(sd, "accept");&lt;BR /&gt;  close (listen_sd);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can any one please help me?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Binu&lt;BR /&gt;</description>
      <pubDate>Wed, 31 May 2006 01:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797228#M547595</guid>
      <dc:creator>msbinu</dc:creator>
      <dc:date>2006-05-31T01:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can i make an inetd process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797229#M547596</link>
      <description>Hello,&lt;BR /&gt;Did you force inetd to reload the config file by inetd -c ?&lt;BR /&gt;&lt;BR /&gt;And in your inetd.conf, you must have the complete path to your server and the command to execute your server itself... kind of&lt;BR /&gt;servername stream tcp nowait root /binu binu</description>
      <pubDate>Wed, 31 May 2006 05:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797229#M547596</guid>
      <dc:creator>BLETARD Philippe</dc:creator>
      <dc:date>2006-05-31T05:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can i make an inetd process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797230#M547597</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I have given all entries.&lt;BR /&gt;Actually now I have noticed that the connection is establishing, but the bind in the server is failing</description>
      <pubDate>Wed, 31 May 2006 05:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797230#M547597</guid>
      <dc:creator>msbinu</dc:creator>
      <dc:date>2006-05-31T05:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can i make an inetd process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797231#M547598</link>
      <description>Hello Binu,&lt;BR /&gt;&lt;BR /&gt;I don't remember well but as it's inetd which is managing the socket connection, I'm not sure you've to do a 'bind' in your server... There's also a faq you can check at &lt;A href="http://www.manualy.sk/sock-faq/unix-socket-faq-4.html" target="_blank"&gt;http://www.manualy.sk/sock-faq/unix-socket-faq-4.html&lt;/A&gt;</description>
      <pubDate>Thu, 01 Jun 2006 06:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797231#M547598</guid>
      <dc:creator>BLETARD Philippe</dc:creator>
      <dc:date>2006-06-01T06:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can i make an inetd process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797232#M547599</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Actually i have removed the bind calls as it is not required .Now the problem is that, I m not sure to which sd i have to do a read and write .&lt;BR /&gt;&lt;BR /&gt;( I m using SSL server.Hence i m using SSL_read ,SSL_write etc ) &lt;BR /&gt;&lt;BR /&gt;Binu</description>
      <pubDate>Thu, 01 Jun 2006 09:38:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-make-an-inetd-process/m-p/3797232#M547599</guid>
      <dc:creator>msbinu</dc:creator>
      <dc:date>2006-06-01T09:38:06Z</dc:date>
    </item>
  </channel>
</rss>

