<?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: Specifying server tcp socket address in a client program in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819008#M52521</link>
    <description>&lt;!--!*#--&gt;Below is what was given to me by the owner of the application server I am attempting to connect to.  The first address (test env) contains host and port - no problem.&lt;BR /&gt;&lt;BR /&gt;The second (production env) contains just host and you can see the comments they sent with respect to DNS.  I crossed out our internal domain name so it dosn't become public.&lt;BR /&gt;&lt;BR /&gt;"You will not have to include the port number, the DNS uses the default HTTP port, 80.  Then DNS routes the request to the linux servers on the correct port.&lt;BR /&gt;&lt;BR /&gt;So, before:&lt;BR /&gt;&lt;A href="http://lnx429.xxxx.com:42472/opiws/........." target="_blank"&gt;http://lnx429.xxxx.com:42472/opiws/.........&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In Production:&lt;BR /&gt;&lt;A href="http://opiws.serv.xxxx.com/opiws/......." target="_blank"&gt;http://opiws.serv.xxxx.com/opiws/.......&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I use the production host name and a port of 80, of course everything works.  If I use the production host name and no port, I get an IOSB status of 308 which is - &lt;BR /&gt;%SYSTEM-F-IVADDR, invalid media address.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
    <pubDate>Thu, 06 Jul 2006 19:34:46 GMT</pubDate>
    <dc:creator>Jeff Dowbenko</dc:creator>
    <dc:date>2006-07-06T19:34:46Z</dc:date>
    <item>
      <title>Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819005#M52518</link>
      <description>&lt;!--!*#--&gt;I have been able to create a socket and connect to a server in a "c" client program using host name and port.&lt;BR /&gt;&lt;BR /&gt;How can I do the same when all I have is the host name (DNS has the port number)?</description>
      <pubDate>Thu, 06 Jul 2006 14:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819005#M52518</guid>
      <dc:creator>Jeff Dowbenko</dc:creator>
      <dc:date>2006-07-06T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819006#M52519</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;What (precisely) do you mean by "(DNS has the port number)"?&lt;BR /&gt;&lt;BR /&gt;In the simplest interpretation of your question, the answer is: Resolve the port number using a DNS query (probably using the C-socket library), then insert the information into the appropriate control block for the socket calls.&lt;BR /&gt;&lt;BR /&gt;More information would be appreciated, however.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Thu, 06 Jul 2006 15:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819006#M52519</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-07-06T15:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819007#M52520</link>
      <description>Since when did DNS deal with _port_ numbers?&lt;BR /&gt;&lt;BR /&gt;_Service_ names can be translated into port&lt;BR /&gt;numbers (by getservbyname(), for example).</description>
      <pubDate>Thu, 06 Jul 2006 16:06:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819007#M52520</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-07-06T16:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819008#M52521</link>
      <description>&lt;!--!*#--&gt;Below is what was given to me by the owner of the application server I am attempting to connect to.  The first address (test env) contains host and port - no problem.&lt;BR /&gt;&lt;BR /&gt;The second (production env) contains just host and you can see the comments they sent with respect to DNS.  I crossed out our internal domain name so it dosn't become public.&lt;BR /&gt;&lt;BR /&gt;"You will not have to include the port number, the DNS uses the default HTTP port, 80.  Then DNS routes the request to the linux servers on the correct port.&lt;BR /&gt;&lt;BR /&gt;So, before:&lt;BR /&gt;&lt;A href="http://lnx429.xxxx.com:42472/opiws/........." target="_blank"&gt;http://lnx429.xxxx.com:42472/opiws/.........&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In Production:&lt;BR /&gt;&lt;A href="http://opiws.serv.xxxx.com/opiws/......." target="_blank"&gt;http://opiws.serv.xxxx.com/opiws/.......&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I use the production host name and a port of 80, of course everything works.  If I use the production host name and no port, I get an IOSB status of 308 which is - &lt;BR /&gt;%SYSTEM-F-IVADDR, invalid media address.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 06 Jul 2006 19:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819008#M52521</guid>
      <dc:creator>Jeff Dowbenko</dc:creator>
      <dc:date>2006-07-06T19:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819009#M52522</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;From the snippet that you posted, it would appear that the correct port is 80 (the convention for the assignment for an HTTP server).&lt;BR /&gt;&lt;BR /&gt;This is not a function of DNS. The test case that you included contains a port number as part of the URL. The DNS name of the server is extracted from the URL before (emphasis BEFORE) the name is supplied to the DNS clerk for translation to an IP address.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:59:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819009#M52522</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-07-06T20:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819010#M52523</link>
      <description>&amp;gt; "You will not have to include the port&lt;BR /&gt;&amp;gt; number, the DNS uses the default HTTP&lt;BR /&gt;&amp;gt; port, 80.  Then DNS routes the request to&lt;BR /&gt;&amp;gt; the linux servers on the correct port.&lt;BR /&gt;&lt;BR /&gt;This guy's drooling.  DNS has nothing to do&lt;BR /&gt;with the port number, only the translation&lt;BR /&gt;from the name to the IP address.  Also, DNS&lt;BR /&gt;does not "route" anything.&lt;BR /&gt;&lt;BR /&gt;Web browsers (and related programs) use port&lt;BR /&gt;80 by default for the "http" scheme.  For&lt;BR /&gt;the names of other popular schemes, see, for&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/URL" target="_blank"&gt;http://en.wikipedia.org/wiki/URL&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You _always_ need to specify a port number.&lt;BR /&gt;The only question is whether to use the port&lt;BR /&gt;number specified explicitly by someone else&lt;BR /&gt;(like 42472), or to use the port number of&lt;BR /&gt;your own choice (like 80).  It helps if you&lt;BR /&gt;choose the port number where the desired&lt;BR /&gt;server application is listening.&lt;BR /&gt;&lt;BR /&gt;On a UNIX system, the service name to port&lt;BR /&gt;number translation table is often found in&lt;BR /&gt;/etc/services (or a similar NIS data base).&lt;BR /&gt;On VMS, it depends on whose TCP/IP package.&lt;BR /&gt;("TCPIP SHOW SERVICE", for HP's TCPIP.)</description>
      <pubDate>Thu, 06 Jul 2006 23:44:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819010#M52523</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-07-06T23:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819011#M52524</link>
      <description>And note that getservbyname() gets the port number from LOCAL setup, not the remote system:&lt;BR /&gt;And especially for HTTP in VMS, it depends from the TCPIP stack and the HTTP server software, if there is a service defined.&lt;BR /&gt; &lt;BR /&gt;For HP TCPIP services (UCX) and the OSU HTTP server for example there is nothing defined , the port is established dynamically at OSU startup.&lt;BR /&gt;&lt;BR /&gt;So You have to communicate with the remote systems manager to stay in synch.&lt;BR /&gt;&lt;BR /&gt;What You could do to keep the application unchanged (by using getservbyname("HTTP",&amp;amp;port) ), is to establish a dummy HTTP service just to define the service port. So in case the HTTP port would change, only the TCPIP service setup would have to be changed, not the application program using it.</description>
      <pubDate>Fri, 07 Jul 2006 01:48:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819011#M52524</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2006-07-07T01:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819012#M52525</link>
      <description>Previous replies are correct... and if they doesn't push you in the right direction maybe this will.&lt;BR /&gt;&lt;BR /&gt;It was written&lt;BR /&gt;&lt;BR /&gt;&amp;gt; So, before:&lt;BR /&gt;&amp;gt; &lt;A href="http://lnx429.xxxx.com:42472/opiws/........." target="_blank"&gt;http://lnx429.xxxx.com:42472/opiws/.........&lt;/A&gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; In Production:&lt;BR /&gt;&amp;gt; &lt;A href="http://opiws.serv.xxxx.com/opiws/......." target="_blank"&gt;http://opiws.serv.xxxx.com/opiws/.......&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;By convention &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://opiws.serv.xxxx.com/opiws/" target="_blank"&gt;http://opiws.serv.xxxx.com/opiws/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;is equivalent to&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://opiws.serv.xxxx.com:80/opiws/" target="_blank"&gt;http://opiws.serv.xxxx.com:80/opiws/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jul 2006 09:57:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819012#M52525</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2006-07-07T09:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying server tcp socket address in a client program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819013#M52526</link>
      <description>&lt;!--!*#--&gt;Thanks all...&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Sat, 08 Jul 2006 21:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/specifying-server-tcp-socket-address-in-a-client-program/m-p/3819013#M52526</guid>
      <dc:creator>Jeff Dowbenko</dc:creator>
      <dc:date>2006-07-08T21:41:05Z</dc:date>
    </item>
  </channel>
</rss>

