<?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: Passing socket/file descriptors between processes? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497190#M32023</link>
    <description>Does &lt;A href="http://h18000.www1.hp.com/support/asktima/operating_systems/009D3F45-215FE900-1C0186.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/operating_systems/009D3F45-215FE900-1C0186.html&lt;/A&gt;&lt;BR /&gt;would make the trick ?&lt;BR /&gt;Philippe</description>
    <pubDate>Sat, 02 Apr 2005 03:31:59 GMT</pubDate>
    <dc:creator>Vouters</dc:creator>
    <dc:date>2005-04-02T03:31:59Z</dc:date>
    <item>
      <title>Passing socket/file descriptors between processes?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497185#M32018</link>
      <description>I'm unsure if the answers I'll get to this question will be all that polite, as this is pretty high octane stuff on Unix =)&lt;BR /&gt;&lt;BR /&gt;Can I pass a socket descriptor from a parent process to a child process on VMS? By "passing a descriptor descriptor" I mean actually passing the ownership of the socket from one process to another - a little more that writing a 4 byte integer down a pipe.&lt;BR /&gt;&lt;BR /&gt;Traditionally BSD and and SysV employ different approaches of achieving this, but both of them rely on a pipe between the two processes.&lt;BR /&gt;&lt;BR /&gt;Does anyone know if the C RTL supports either mechanism, should I look into using the underlying system services, or give up altogether?&lt;BR /&gt;&lt;BR /&gt;My thanks again for your headscratching,&lt;BR /&gt;&lt;BR /&gt;M.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2005 11:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497185#M32018</guid>
      <dc:creator>Martin Cowie</dc:creator>
      <dc:date>2005-03-03T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Passing socket/file descriptors between processes?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497186#M32019</link>
      <description>the full fork semantics are not implemented on VMS (its being thought about).&lt;BR /&gt;&lt;BR /&gt;does vfork do what you want?&lt;BR /&gt;See &lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/commercial/c/docs/5763pro_047.html#index_x_1307" target="_blank"&gt;http://h71000.www7.hp.com/commercial/c/docs/5763pro_047.html#index_x_1307&lt;/A&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/commercial/c/docs/5763pro_064.html#index_x_1727" target="_blank"&gt;http://h71000.www7.hp.com/commercial/c/docs/5763pro_064.html#index_x_1727&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2005 12:35:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497186#M32019</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-03-03T12:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing socket/file descriptors between processes?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497187#M32020</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;In this Ask the Wizard you have an example on how to pass a socket to a subprocess:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/wizard/wiz_3995.html" target="_blank"&gt;http://h71000.www7.hp.com/wizard/wiz_3995.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Thu, 03 Mar 2005 13:21:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497187#M32020</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2005-03-03T13:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Passing socket/file descriptors between processes?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497188#M32021</link>
      <description>I should really be more specific - I'm looking to find out how a socket can be passed from a parent to a child process, *after* the vfork/exec combination.</description>
      <pubDate>Fri, 04 Mar 2005 09:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497188#M32021</guid>
      <dc:creator>Martin Cowie</dc:creator>
      <dc:date>2005-03-04T09:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing socket/file descriptors between processes?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497189#M32022</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;The example in the link in my previous post does yust that. Unfortunately it is writen in the $qio interface to sockets, which is more difficult to understand for an Unix guy.&lt;BR /&gt;&lt;BR /&gt;In short:&lt;BR /&gt;The example (PARENT.C) listen for an incoming connection, when the connection is established creates a subprocess (CHILD.C) calling lib$spawn and  pass the socket to it (using a mailbox). Then this subprocess comunicates with the client on that socket.&lt;BR /&gt;&lt;BR /&gt;Probably the line&lt;BR /&gt;$DESCRIPTOR(command, "run serverc_qio2");&lt;BR /&gt;should be&lt;BR /&gt;$DESCRIPTOR(command, "run child");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Fri, 04 Mar 2005 09:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497189#M32022</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2005-03-04T09:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Passing socket/file descriptors between processes?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497190#M32023</link>
      <description>Does &lt;A href="http://h18000.www1.hp.com/support/asktima/operating_systems/009D3F45-215FE900-1C0186.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/operating_systems/009D3F45-215FE900-1C0186.html&lt;/A&gt;&lt;BR /&gt;would make the trick ?&lt;BR /&gt;Philippe</description>
      <pubDate>Sat, 02 Apr 2005 03:31:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-socket-file-descriptors-between-processes/m-p/3497190#M32023</guid>
      <dc:creator>Vouters</dc:creator>
      <dc:date>2005-04-02T03:31:59Z</dc:date>
    </item>
  </channel>
</rss>

