🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #9378

4th Dimension - SEND PACKET

#9378
From: Bill Brown
Date: Tue, 12 Dec 1989 16:29
28 lines
1950 bytes
I'm doing an application in 4D that need to send data to a serial printer.

I'm attempting to do this via the SET CHANNEL and SEND PACKET commands.

It turns out that SEND PACKET (according to the ACIUS help line people)
uses a system call with a buffer that is only 64 bytes long.  They have
promised to send me an "external" that will make the buffer larger, but
I think that the buffer size is only part of the problem.

It appears that on serial port output they are doing non-blocking i/o -
it's possible to clobber the output by making a second call before the
data sent with a preceeding call is fully processed.  I can find nothing
in the 4D documentation that addresses this issue.  One kludgey way out
is to put a delay loop after every SEND PACKET call; I can't believe that
this is a reasonable thing to do since there are many cases where it
won't really work (like printer not ready).

Anybody have any ideas how to get around this?  I'm gonna call ACIUS
again and perhaps they will have an answer, but in view of my other 
contacts I'm not optimistic.

Thanks for your help.
						-bill
						wlbrown@lbl.gov

Disclaimer:  These opinions are my own and have nothing to do with the
    official policy or management of L.B.L, who probably couldn't care 
    less about employees who play with trains.
Technical Details
Message-ID: <4442@helios.ee.lbl.gov>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!hellgate.utah.edu!helios.ee.lbl.gov!beva.bev.lbl.gov!wbrown
References: <16418215MES@MSU> <6685@tank.uchicago.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!hellgate.utah.edu!helios.ee.lbl.gov!beva.bev.lbl.gov!wbrown
From: wbrown@beva.bev.lbl.gov (Bill Brown)
Newsgroups: comp.sys.mac
Subject: 4th Dimension - SEND PACKET
Keywords: 4D SEND_PACKET blocking_i/o
Message-ID: <4442@helios.ee.lbl.gov>
Date: 12 Dec 89 16:29:41 GMT
References: <16418215MES@MSU> <6685@tank.uchicago.edu>
Sender: usenet@helios.ee.lbl.gov
Reply-To: wbrown@beva.bev.lbl.gov (Bill Brown)
Organization: Lawrence Berkeley Laboratory, Berkeley
Lines: 28
X-Local-Date: 12 Dec 89 08:29:41 PST