<?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: Hand off a connected socket connection to another process in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6739896#M37467</link>
    <description>&lt;P&gt;The solution was relatively easy. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the listen socket to shareable and then when the client connects grab the unit number (LIB$GETDVI) and pass that to the newly created client process. &amp;nbsp;The client process can then generated the appropriate device name (BG&amp;lt;unit&amp;gt;) and assign to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2015 07:39:22 GMT</pubDate>
    <dc:creator>Brian Reiter</dc:creator>
    <dc:date>2015-05-01T07:39:22Z</dc:date>
    <item>
      <title>Hand off a connected socket connection to another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6736762#M37464</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How easy would it be to write a program which would accept an inbound TCP/IP connection and hand that connection off to another process to deal with?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I could create a TCPIP service to do thi but some system restrictions mean it may be required to do this ourselves.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brian Reiter&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 07:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6736762#M37464</guid>
      <dc:creator>Brian Reiter</dc:creator>
      <dc:date>2015-04-24T07:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hand off a connected socket connection to another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6736777#M37465</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Take a look to the sys$examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://starlet.spb.ru/sys$examples/TCPIP/*.*" target="_blank"&gt;http://starlet.spb.ru/sys$examples/TCPIP/*.*&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 08:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6736777#M37465</guid>
      <dc:creator>Ruslan R. Laishev</dc:creator>
      <dc:date>2015-04-24T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hand off a connected socket connection to another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6736894#M37466</link>
      <description>&lt;P&gt;Have a look at Apache or WASD, for how those deal with server process pools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I and others have asked for that hand-off API but — AFAIK — there is no supported means for performing that hand-off. (While there are undocumented means — no, I don't have a link for those, and haven't seen any undocumentation — I'm not inclined to use those in general, and particularly not now given that VSI is reportedly replacing the IP stack with something else in an upcoming OpenVMS release.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things here get more interesting when handing off an encrypted connection, too — that's not something I've encountered on OpenVMS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On OpenVMS, using inetd is the usual approach, starting up the receiver as necessary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like&amp;nbsp;&lt;A href="http://gearman.org" target="_blank"&gt;http://gearman.org&lt;/A&gt; would be handy, but I've not seen that ported to OpenVMS.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 15:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6736894#M37466</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2015-04-24T15:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hand off a connected socket connection to another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6739896#M37467</link>
      <description>&lt;P&gt;The solution was relatively easy. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the listen socket to shareable and then when the client connects grab the unit number (LIB$GETDVI) and pass that to the newly created client process. &amp;nbsp;The client process can then generated the appropriate device name (BG&amp;lt;unit&amp;gt;) and assign to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 07:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6739896#M37467</guid>
      <dc:creator>Brian Reiter</dc:creator>
      <dc:date>2015-05-01T07:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hand off a connected socket connection to another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6740107#M37468</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/4757"&gt;@Brian Reiter&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;The solution was relatively easy. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the listen socket to shareable and then when the client connects grab the unit number (LIB$GETDVI) and pass that to the newly created client process. &amp;nbsp;The client process can then generated the appropriate device name (BG&amp;lt;unit&amp;gt;) and assign to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FWIW, if that's all you're doing, use inetd (OpenVMS calls it the "auxillary server"), as that's what inetd provides...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 22:04:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hand-off-a-connected-socket-connection-to-another-process/m-p/6740107#M37468</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2015-05-01T22:04:52Z</dc:date>
    </item>
  </channel>
</rss>

