This sample program demonstrates how to write an asynchronous layer on top of Client-Library. It uses hooks provided by Client-Library to allow seamless polling and use of Client-Library completion callbacks.
The sample program is composed of two files:
ex_alib.c contains the source code to the library portion of the example. It is meant to be part of a library interface that supports asynchronous calls. ex_alib.c sends a query to, retrieves results from, a server using only one asynchronous operation.
ex_amain.c contains the source code to the main program that uses the services provided by ex_alib.c.
See the leading comments in both the example source files and in the EX_AREAD.ME file.