home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / games / netrek / 11337 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.2 KB  |  52 lines

  1. Newsgroups: rec.games.netrek
  2. Path: sparky!uunet!ulowell!ulowell.ulowell.edu!jrichard
  3. From: jrichard@cs.cs (John 'MacGyver' Richardson)
  4. Subject: Re: ntserv
  5. In-Reply-To: jwh@cs.bham.ac.uk's message of 23 Dec 92 19:03:20 GMT
  6. Message-ID: <JRICHARD.92Dec30003111@cs.cs>
  7. Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
  8. Organization: /usr/ug/1993/jrichard/.organization
  9. References: <Bzq7LL.JA5@cs.bham.ac.uk>
  10. Date: Wed, 30 Dec 1992 05:31:11 GMT
  11. Lines: 39
  12.  
  13. In article <Bzq7LL.JA5@cs.bham.ac.uk> jwh@cs.bham.ac.uk (James Hawtin) writes:
  14.  
  15.  
  16. >
  17. >  take most of the time is ntserv or rather the swopping/contex switch of 16 of them.  Why is this forked perhaps it could be written as a single process? I know this is
  18. >
  19.  
  20. Ok, not to beat a dead dog, but I've been working on this for a while now.
  21. It was pretty easy to come up with multiplexed I/O for logging in.  HOWEVER,
  22. the big problems are: 
  23.  
  24.     o scheduling becomes a disaster!  However, I'm trying reading 
  25.       one packet from whoever's ready and going on to the next slot.
  26.       Updates taken care of by the daemon now get taken care of by
  27.       a signal handler.
  28.  
  29.     o reading and writing becomes a disaster!  If you use TCP you have
  30.       to deal with partial reads and writes of packets because you have
  31.       to use nonblocking I/O.  If you want to write code, you have to
  32.       have states for everything in the universe (so to speak).  The
  33.       solution?  Use UDP only.  But that requires a TCP like protocol
  34.       to get those packets that absolutely have to get there (like a 
  35.       login name).  Feel like re-inventing the wheel?  I sure feel 
  36.       like I am now.  :)  
  37.  
  38. Despite the above, it's kinda fun, so I'm keeping at it.  I had a shot with
  39. writing the server in C++, but virtual functions and shared memory ogged me
  40. (so to speak again) as they don't work well together.  Ah... too bad. :(
  41. It would be cool to do.
  42.  
  43. (Also, I'm probably be the only person still left working on this)  If anyone
  44. has any ideas about the protocol problem (I've got some stuff from rjones (any-
  45. one have any more?))  Feel free to send me mail!  
  46.  
  47. BTW:  what happened the the netrek hackers mailing list?   If it's 
  48. gone is anyone interested in making a new one?
  49.  
  50. John Richardson       
  51. jrichard@cs.ulowell.edu
  52.