home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23493 < prev    next >
Encoding:
Text File  |  1993-01-10  |  3.5 KB  |  89 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!think.com!enterpoop.mit.edu!bloom-picayune.mit.edu!daemon
  3. From: Dave@usppc.abb.com
  4. Subject: Re: Client/Server Coding
  5. Message-ID: <1993Jan10.214348.10114@athena.mit.edu>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Reply-To: Dave@usppc.abb.com
  8. Organization: The Internet
  9. Date: Sun, 10 Jan 1993 21:43:48 GMT
  10. Lines: 77
  11.  
  12. Thanks for your note, Mike.  Its a nice rest from polishing something
  13. for client installation tomorrow.
  14.  
  15. | Are you programming/running a Linux system?
  16.  
  17. Maybe later this year.  My old Amiga 1000 has been getting terribly
  18. lonely and terribly dated.  I currently look after Vaxen and Sun 4's
  19. and make stuff for operator traning simulators and power plant
  20. monitoring computers.
  21.  
  22. I'd like to learn a little X and C++ and was looking at Linux on a new
  23. DECpc 433 as a place to do that.
  24.  
  25. | Any idea what system/library calls would be of interest?
  26.  
  27. If Linus has a TLI socket interface, that would be the way to go if you
  28. do your own protocols.  The Berkeley sockets interface is obsolescent.
  29. TLI is System V ready.
  30.  
  31. My personal preference is to use Open Network Computing Remote
  32. Procedure Calls.  Any NFS capable platform has the necessary RPC and
  33. XDR libraries.  The advantages are
  34.  
  35.     RPC presents the metaphore of a procedure call to both client
  36.     and server
  37.  
  38.     RPC uses XDR (external data representation) to achieve machine
  39.     independence
  40.  
  41.     RPC isolates you from the transport and uses the ones
  42.     available. Then newest flavor is TLI RPC.  It will use any TLI
  43.     supported protocol which the server offers (i believe with
  44.     automatic negotiation of the protocol to use).
  45.  
  46. You can literally saw a monolithic application in two and make it
  47. client- server using these libraries.
  48.  
  49. XDR lets radically different machines participate in the application by
  50. converting everything exchanged between them to canonic form.  Your PC
  51. can colaborate with a VAX or an AXP machine, "no problemo".
  52.  
  53. We did just this at work to make several server processes distributed
  54. for use in an nuclear power plant operator training simulator.  It took
  55. about two weeks to put the prototype together starting with library
  56. routines for our existing data dictionary and snapshot librarian.
  57.  
  58. Sun recommends using XDR routines to convert internal data into canonic
  59. form for reading and writing files.  This allows machines of different
  60. architectures to share binary files sitting on the NFS server.
  61. Radical!
  62.  
  63. |  Stevens book's strengths?
  64.  
  65. I like Steven's "UNIX Network Programming ..."  It is very complete up
  66. to remote procedure calls.  It covers pipes, sockets, system V
  67. messages, shared memory, and semaphores and essential UNIX system
  68. calls.  It then does telnet, rmt, rlogin, rcmd, rexec, lpr, ping,
  69. time-and-date, as examples.  I haven't been through them all, but his
  70. System V IPC chapter saved us a lot of pain at PPC.
  71.  
  72. | Power Programming with RPC comments
  73.  
  74. The O'Rilley book is OK on RPC.  I hate the PC puke title.  It has good
  75. examples but its not up to the high standard set by the Stevens books.
  76. It does compare ONC and DNC (OSF style) remote procedures.  The two
  77. camps have dulled the hatchets and agreed to make their RPC's the
  78. same.  He develops several example applications and makes his
  79. presentations in more detail that the those in the Sun Programmers
  80. Guide.
  81.  
  82. We did our first application mostly with the Sun tutorials.  They have
  83. example code on several servers.  I believe you can get it from
  84. uunet.uu.net if it is not part of the Linux distribution or archives.
  85.  
  86. Regards
  87. Dave.Hamby
  88. Usppc.Abb.Com
  89.