Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 685 Bytes

File metadata and controls

30 lines (19 loc) · 685 Bytes

NAME

WaitPkt -- Waits for a packet to arrive at your pr_MsgPort (V36)

SYNOPSIS

    packet = WaitPkt()
    D0

    struct DosPacket *WaitPkt(void);

Links: DosPacket

FUNCTION

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.

RESULT packet - the packet that arrived at the port (from ln_Name of message).

SEE ALSO

SendPkt, DoPkt, AbortPkt