home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / vmsnet / networks / tcpip / ucx / 258 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.4 KB

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