home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!merlin!resmel.bhp.com.au!wewila
- From: wewila@vulcan.resmel.bhp.com.au
- Newsgroups: vmsnet.networks.tcp-ip.ucx
- Subject: Re: Multithreading and subprocesses in UCX
- Message-ID: <1993Jan12.122914.273@vulcan.resmel.bhp.com.au>
- Date: 12 Jan 93 12:29:14 +1000
- References: <1992Dec24.100456.1@hfrd.dsto.gov.au> <1993Jan5.081451.30@iwsd01.itwol.bhp.com.au> <7121@m1.cs.man.ac.uk>
- Organization: BHP Information Technology
- Lines: 42
-
- In article <7121@m1.cs.man.ac.uk>, mzagsaa@v4.cgu.mcc.ac.uk (Tony Arnold) writes:
- >
- > In article <1993Jan5.081451.30@iwsd01.itwol.bhp.com.au>,
- > wewila@iwsd01.itwol.bhp.com.au (Alan Wilkie) writes:
- > |>
- > |>There are a couple of options then for handling a connection. If you
- > |>have
- > |>a standalone process listening for the incoming connection, you just
- > |>accept
- > |>the connection and spawn/create another process passing the device UCX
- > |>gives
- > |>you as the input/output channel for the process. I think this is how
- > |>the
- > |>REXEC/TELNET/etc type servers do it.
- >
- > Can this be done using the BSD style interface to TCP/IP? I can
- > appreciate it being possible with the $QIO interface, but I've not
- > figured it out for the other. Any further information on this would be
- > most appreciated.
- >
- > Tony Arnold.
-
- Hmmmm.... Unfortunately, I haven't used the socket library much, so I can't
- really offer a decent answer. It should be possible to spin off subprocesses
- from servers using the socket library. As far as I can tell, the socket number
- provided by the library when you create a socket is just a normal VMS channel
- number, and since open channels can be inherited by subprocesses, it should
- work.
-
- I presume that UNIX systems do this sort of thing using fork/exec which can
- also (sort of) be done in VMS, but I've never actually seen the source code
- for a UNIX style server process, so I don't know for sure.
-
- Wish I knew more,
- --
- -------------------------------------------------------------------/\/\---
- Alan Wilkie, Analyst/Programmer, Process & Engineering Section / / /\
- BHP Information Technology, Wollongong Australia / / / \
- Mail : P.O. Box 261, Warrawong 2502 / / / /\ \
- Telephone : +61 42 755667 Fax: +61 42 755215 \ \/ / / /
- Internet : wewila@vulcan.resmel.bhp.com.au \ / / /
- ------------------------------------------------------------------\/\/\/--
-