[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

ReplyPkt

Replies a packet to the person who sent it to you

Declaration

Source position: amigados.pas line 2286

procedure ReplyPkt(

  Dp: PDosPacket;

  Res1: LongInt;

  Res2: LongInt

);

Arguments

Dp

  

Packet to reply, assumed to set up correctly.

Res1

  

First result

Res2

  

Secondary result

Description

This returns a packet to the process which sent it to you. In addition, puts your pr_MsgPort address in dp_Port, so using ReplyPkt() again will send the message to you. (This is used in "ping-ponging" packets between two processes). It uses result 1 and 2 to set the dp_Res1 and dp_Res2dp_Res2 fields of the packet.

See also

DoPkt

  

Send a dos packet and wait for reply

SendPkt

  

Sends a packet to a handler

WaitPkt

  

Waits for a packet to arrive at your pr_MsgPort

IoErr

  

Return extra information from the system


Documentation generated on: 2017-01-10