Webmethods C client

Hi I have created a C client using the developer in webmethods 6 environment. Now I would like to implement a timeout for the asynchronous request we make using invokeWmAsync method… can somebody help me out in this… or provide me a sample C client with timeout implemented.

Thanks in advance