home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / transput / 968 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.8 KB  |  46 lines

  1. Newsgroups: comp.sys.transputer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!gandalf!michael
  3. From: michael@gandalf.moria (Michael Haardt)
  4. Subject: Usage of in/out concerning iserver packets?
  5. Message-ID: <92083073@gandalf.moria>
  6. Lines: 32
  7. Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
  8. Nntp-Posting-Host: messua
  9. Reply-To: u31b3hs@pool.informatik.rwth-aachen.de (Michael Haardt)
  10. Organization: An old and gray machine, somewhere in Moria.
  11. Date: Sun, 30 Aug 92 13:04:21 +0100
  12. Lines: 32
  13.  
  14. While learning assembler, I wondered about how iserver is supposed to be
  15. used.  If two processes communicate with each other, the length of 
  16. corresponding 'in's and 'out's has to be same, right?  For the root 
  17. transputer exchanging data with the host, that doesn't matter, but what 
  18. for a router process which transports iserver packets between processes,
  19. e.g. to simulate a virtual transputer network?
  20.  
  21. Do all commercial iserver libraries use the same in/out protocol, which 
  22. is given by the OCCAM data structures?
  23.  
  24. > Every communication, both to and from the server, is a counted array of
  25. > bytes.  The first two bytes are a (little endian) count of the following
  26. > message length.
  27. >
  28. > In OCCAM these messages can be routed as INT16::[]BYTE protocol.
  29.  
  30. An example for a data packet is the PutBlock Function:
  31.  
  32. > To server:    BYTE           Tag = 24
  33. >               INT32          StreamId
  34. >               INT16::[]BYTE  Data
  35.  
  36. Somehow I don't understand it.  How will the packet be sent?
  37.  
  38. -   INT16, rest as single BYTEs
  39. -   INT16, rest as one block of BYTEs (I have no knowledge of OCCAM, sorry)
  40. -   INT16, BYTE, INT32, INT16, rest as single BYTEs
  41. -   INT16, BYTE, INT32, INT16, rest as one block of BYTEs
  42.  
  43. I hope there is a convention.  Or am I totally wrong?
  44.  
  45. Michael
  46.