home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20313 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!LUDWIG.CTD.ORNL.GOV!LPZ
  2. From: LPZ@LUDWIG.CTD.ORNL.GOV ("Lawrence MacIntyre - 615.576.0824")
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Handling multiple client connections with VMS TCP/IP servers?
  5. Message-ID: <930104120624.21c002ab@LUDWIG.CTD.ORNL.GOV>
  6. Date: 4 Jan 93 17:06:24 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 30
  11.  
  12. >Using UCX2.0, VAXC3.2 under VMS5.5-2.
  13. >
  14. >When writing VMS TCP/IP servers, is there an elegant method of having VMS
  15. >sub/det processes handle multiple client connections, a'la U**x fork[/exec]?
  16. >
  17. >Is multi-threading the server (QIOs and ASTs) the only method?  In which case
  18. >how are telnet, rsh, ... connections, that create network processes under a
  19. >different UIC, handled?
  20. >
  21. >Questions, questions, and so little documentation.  The usual apologies (FAQ,
  22. >etc.)  With thanks in advance.  Mark Daniel.
  23.  
  24. Mark:
  25.  
  26. I can't reply to you because you didn't include an address and the mailer
  27. didn't leave one that works.  There is an elegant way of handling client
  28. connections, and you already noticed it.  Multithreading the server is it! 
  29. Check out sys$examples:db_server.c.  This is a DECnet server, but the concepts
  30. are the same, just substitute TCP code for the DECnet code.  Unix fork/exec
  31. isn't elegant, it's sloppy and lazy *unless* you have a multiprocessor machine
  32. to run the forked processes on.  All it does is make unix programmers think
  33. that forking is the one true way to write code.
  34.  
  35.                                    Lawrence
  36.                                       ~
  37. -----------------------------------------------------------------------------
  38.  
  39. Internet: MACINTYRELP@ORNL.GOV    US-Snail: Lawrence MacIntyre
  40.           LPZ@ORNL.GOV                AT&T: 615.576.0824
  41.  
  42.