home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4810 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.7 KB

  1. Path: sparky!uunet!sun-barr!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
  2. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: Please explain...
  5. Keywords: Telnet, pseudo-terminals, sockets
  6. Message-ID: <1992Nov20.093151.19989@thunder.mcrcim.mcgill.edu>
  7. Date: 20 Nov 92 09:31:51 GMT
  8. References: <1992Nov18.190632.13873@news.uit.no>
  9. Organization: McGill Research Centre for Intelligent Machines
  10. Lines: 30
  11.  
  12. In article <1992Nov18.190632.13873@news.uit.no>, orjanr@staff.cs.uit.no (Xrjan Robertsen) writes:
  13.  
  14. > When you use telnet, telnetd [...more or less accurate sketch of how
  15. > telnetd works...].  Right?
  16.  
  17. Pretty much, assuming that you telnet to a typical UNIXish system.
  18.  
  19. > What I don't understand is how input/output from the shell (to/from
  20. > the slave side of the terminal) ends up going over the socket back to
  21. > the local telnet?
  22.  
  23. Output from the remote shell goes to the (slave) pty.  telnetd then
  24. reads it from the (master) pty and writes telnet protocol stream to the
  25. network connection.  The local telnet then reads this and turns it into
  26. local output.  Input takes the converse path.
  27.  
  28. > I thought all communication had to pass through telnetd, but
  29. > monitoring this process (with monitor) shows no I/O activity when
  30. > telnet and the remote shell is communicating.  How can this be ?
  31.  
  32. monitor, whatever that is, is either broken or is not designed to do
  33. what you're trying to do with it.  If the remote system (the one where
  34. telnetd and the remote shell are running) is even remotely "normal" (by
  35. which I really mean something more like "typical"), all communication
  36. between the net and the remote shell must go through telnetd.
  37.  
  38.                     der Mouse
  39.  
  40.                 mouse@larry.mcrcim.mcgill.edu
  41.