Docs » Autodocs » dos.library » WaitPkt
WaitPkt -- Waits for a packet to arrive at your pr_MsgPort (V36)
packet = WaitPkt() D0 struct DosPacket *WaitPkt(void);
Waits for a packet to arrive at your pr_MsgPort. If anyone has installed a packet wait function in pr_PktWait, it will be called. The message will be automatically GetMsg()ed so that it is no longer on the port. It assumes the message is a dos packet. It is NOT guaranteed to clear the signal for the port.
packet - the packet that arrived at the port (from ln_Name of message).
SendPkt(), DoPkt(), AbortPkt()
|