
XYGATE
®
Data Protection
™
Reference Manual
Appendix E: XDP API Procedures
XYPRO Technology Corporation
142
Proprietary and Confidential
pbuffer
The buffer address returned from AWAITIOX.
Example:
/* Global Storage */
short nserv_index1; /* Pathway server index, method 1 */
char *encr_ctx; /* Encryption context pointer */
char *pbuffer; /* I/O buffer */
...
/* Local Storage */
long long process_time = 0ll; /* Encr process time in microsends */
long niotagret; /* I/O tag for the send */
unsigned short ncountret; /* Returned count from AWAITIOX */
short nerror /* Receives error codes */
,nencr_error /* Encryption API detailed error code */
,nfilenum = (-1); /* File number for AWAITIOX */
char _far *pbufaddrret = NULL; /* Buf ptr from AWAITIOX */
_cc_status cc; /* CC for AWAITIOX */
/* Wait for a completion. An application would specify an I/O tag when it */
/* initiated the send operation that could later be identified and */
/* associated with this send. In this sample program we use 1234. */
cc = AWAITIOX (&nfilenum
,(__int32_t _far *) &pbufaddrret
,&ncountret
,&niotagret);
/* Check for errors */
if (!_status_eq(cc))
{
FILE_GETINFO_ (nscsend_op_num
,(short _far *) &nerror);
/* Error handling */
}
...
nerror = __XYPRO_ENCR_IO_COMPLETED ((long _far *) encr_ctx
,nfilenum
,nserv_index1
,(short) ncountret
,(long long _far *) &process_time
,(short _far *) &nencr_error
,(char _far *) pbufaddrret);
Summary of Contents for Trinitron WEGA KV-DZ29M91
Page 2: ......