home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!uchdcc!camino.mic.cl!thomas
- From: thomas@camino.mic.cl (Thomas Fruin)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: DECnet packets via ARA getting truncated!?
- Organization: El Camino
- Message-ID: <0105013E.mcbl7x@camino.mic.cl>
- Reply-To: Thomas Fruin <thomas@camino.mic.cl>
- Distribution: world
- X-Mailer: uAccess - Macintosh Release: 1.5v4
- Lines: 55
- Date: Tue, 29 Dec 1992 18:55:27 CST
-
-
- In article <0105013E.m9gd41@camino.mic.cl> (comp.sys.mac.programmer), Thomas Fruin <thomas@camino.mic.cl> writes:
-
- >My application receives DECnet packets which are always approximately
- >1024 bytes in size. My protocol specifies that if there is no more
- >data in a packet, it should be padded with spaces until the end.
-
- >Now here's the weird problem: ONLY when I connect remotely, DECnet
- >packets get filled with spaces near the end, overwriting part of the
- >information in the packet. The size of the packet is perfect, except
- >that the information in it gets overwritten. This problem does not
- >occur if I connect locally using Ethernet.
-
- I have some more data to add to the previous description of my problem
- with DECnet packets getting truncated:
-
- The problem seems to be related to the encapsulation of DECnet
- in AppleTalk, because the problem appears both when using AppleTalk
- Remote Access and when using a Macintosh on LocalTalk. And the problem
- does not consist of truncation, but of receiving large DECnet packets
- as multiple small AppleTalk packets.
-
- After some more debugging, I found out that sometimes my ~1K DECnet
- packets get delivered in two pieces. The first CMRead will sometimes
- return only 537 bytes (instead of 1066, which is the standard size
- of my packet). When that happens, the second packet is inevitably
- 529 bytes (making a total of 1066).
-
- My theory is that most of the time the multiple AppleTalk packets
- get concatenated into full DECnet packets by my DECnet driver, but
- when the two pieces arrive too far apart in time, the driver goes
- ahead and gives me the first piece.
-
- So my new questions are the following:
-
- 1.- Can somebody confirm my theory of the encapsulation of DECnet
- in AppleTalk, and how packets are delivered by the DECnet driver
- in Pathworks?
-
- 2.- How can I tell if a packet received by my call to CMRead is a
- full or a partial packet? On examining the 'caps' resource in
- the DECnet tool, I found out that it doesn't support end-of-message
- flags, which I presume I should be using in this case.
-
- Thanks and bedankt to the folks who sent me their suggestions and
- help!
-
- -- Thomas Fruin
-
- GroupWare Ltda
- Temuco Office
- CHILE
-
- thomas@camino.mic.cl
-
-