02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

atp(3N)<br />

u char<br />

struct iovec<br />

int<br />

} at_resp_t;<br />

atp(3N)<br />

bitmap;<br />

resp[ATP_TRESP_MAX];<br />

userdata[ATP_TRESP_MAX];<br />

The members of this structure are<br />

bitmap The bitmap of responses expected and for which<br />

buffers are allocated.<br />

resp An iovec structure describing the response buffers<br />

and their lengths.<br />

userdata An array of 32-bit words holding the user bytes for<br />

each A TP response.<br />

The atp_open routine opens an ATP AppleTalk socket and returns<br />

a file descriptor for use with the remaining A TP calls.<br />

socket A pointer to the DDP socket number to open. If the<br />

AppleTalk socket number is 0, or if socket is NULL,<br />

a DDP socket is dynamically assigned. If non­<br />

NULL, the socket number is returned in socket.<br />

The atp close routine closes the ATP AppleTalk socket<br />

identified by the file descriptor Id.<br />

The atp sendreq routine sends an ATP request to another<br />

socket. This call blocks until a response is received. The parameters<br />

are<br />

fd The ATP file descriptor to use in sending the request<br />

dest The AppleTalk internet address of the AppleTalk<br />

socket to which the request should be sent.<br />

buf The request data buffer.<br />

len The size of request data buffer size.<br />

userdata The user bytes for the ATP request header.<br />

Xl) Is true (nonzero) if the request is to be an exactlyonce<br />

(XO) transaction.<br />

Xl) relt Is ignored if xo is not set to true. Otherwise, it may<br />

be used to set the release timer value on the remote<br />

end. The default value is<br />

A TP _XC _DEF _REL_ TIME. The other permissible<br />

values are: ATP_XO_30SEC, ATP_XO_IMIN,<br />

ATP_XO_2MIN, ATP_XO_4MIN, and<br />

ATP _XO_8MIN. These are declared in the file<br />

February, 1990 3<br />

Revision C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!