[comp.sys.amiga] device driver/getmsg/waitio

rminnich@udel.EDU (Ron Minnich) (12/23/87)

Sorry about the mistake in my message. I was saying i did
a 
CheckIO then
Waitio then
getmsg. 

The getmsg is obviously wrong, as was pointed out to me, as the
waitio does one for me. That was in another piece of code in amigatcp
that i copied verbatim, and my thinking was turned off. oooooops.
   Also, i know i should be doing a Wait(1<<messagebits)
sort of thing, but i am doing the bad way just to get this thing
off the ground. The good way comes later. 

  The one question remains. What does CheckIO check? That the request
is in the ReplyPort's message list? Or some status somewhere? 
I know i am not supposed to care about this, but i am having the 
other problem: as soon as i do a SendIO to re-que a tcp read, the 
machine locks up tight. I feel i must be setting up something
wrong in the driver, which just does a ReplyMsg, or else i have
not correctly re-initialized the request (from other programs it looks
like you can just do a SendIO with the same request). 
   Can any one give me further hints?
Thanks thanks thanks,
ron
-- 
ron (rminnich@udel.edu)