home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / protocol / nfs / 2089 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.6 KB

  1. Path: sparky!uunet!wupost!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!sxn
  2. From: sxn@eng.sun.com (Steve Nahm)
  3. Newsgroups: comp.protocols.nfs
  4. Subject: Re: XDR
  5. Date: 19 Aug 92 04:18:16 GMT
  6. Organization: Sun Microsystems Inc., Mountain View, CA
  7. Lines: 32
  8. Message-ID: <sxn.714197896@rand>
  9. References: <1992Aug17.064823.12057@csuvax1.csu.murdoch.edu.au>
  10. NNTP-Posting-Host: rand
  11.  
  12. wai@csuvax1.csu.murdoch.edu.au (Julian Wai) writes:
  13.  
  14. >Hi,
  15.  
  16. Hi.
  17.  
  18. >Can anyone explain the difference between implicit and explicit typing
  19. >mentioned in rfc1014?  Is the example given at the end of the standard
  20. >explicit or implicit?
  21.  
  22. "Explicit typing" is when a type field is included in the data stream.  XDR
  23. uses implicit typing, which means that the data stream does *not* include any
  24. type information.  Instead, both sides (the reader and writer, or the client
  25. and server) know in advance the type of data that's to be interpreted.  ANS.1
  26. uses explicit typing.
  27.  
  28. The example at the end is encoded in XDR, therefore it uses implicit typing.
  29. You interpret is by looking at the XDR description immediately preceding the
  30. example, and by knowing how things like enums and strings are encoded in XDR.
  31.  
  32. Explicit typing can be useful, for example when you intend to store data that
  33. is read later by some other application.  A package called "netcdf" was
  34. developed at UCAR which stores data in a "self-describing" format.  Check the
  35. anonymous FTP directory pub/netcdf at unidata.ucar.edu.
  36.  
  37. >Thanks in advance.
  38.  
  39. You're welcome after the fact.
  40.  
  41. --
  42. Steve Nahm                              sxn@sun.COM or sun!sxn
  43.  
  44.