ATPAddRsp
ATPAddRsp
Send one additional response packet ATATPRecHandle abRecord; handle to an ATATPRec ATPAddRsp is part of the AppleTalk alternate interface. It is recommended ATPAddRsp sends one additional response packet to another socket. abRecord is a handle to an ATATPRec structure. The relevant fields are as follows:
¨ abResult short 2 2 Result code
Æ abUserReference long 4 4 For your use
Æ atpSocket short 2 0 Responding socket number
Æ atpAddress AddrBlock 4 2 Destination socket address Æ atpReqCount short 2 6 Buffer size in bytes
Æ atpDataPtr Ptr 4 8 Pointer to buffer Æ atpTransID short 2 24 Transaction ID
Æ atpUserData long 4 28 User bytes
¨ atpEOM Boolean 2 34 End-of-message flag Æ atpNumRsp char 1 42 Sequence number
noErr (0) No error
badATPSkt (-1099) Bad ATP-responding socket
badBuffNum (-1100) Bad response buffer number specified
noDataArea (-1104) Too many outstanding ATP calls
Notes: ATPAddRsp sends one additonal packet to a socket that has already been sent the initial part of a response via ATPSndRsp. ATPSocket contains the socket number from which the response should be sent and atpAddress
contains the internet address of the socket to which the response should be
sent. ATPTransID must contain the transaction ID. ATPDataPtr and
atpReqCount specify the location and size of a buffer that contains the
information to send. ATPNumRsp is the sequence number of the response.
ATPEOM is TRUE if this response datagram is the final packet in a
transaction composed of a group of packets. ATPUserData contains the user
bytes to be sent in this response datagram's ATP header.
No BDS is needed with ATPAddRsp because all pertinent information is passed within the record.