Submitted by Anonymous on Mon, 03/26/2001 - 12:23. Developers
Hi all,
Can some one point me the usage of AppAddInput/XtAppNextEvent. Can these be used on a socket. If it can be used can u please point out to an example program doing this??
thanks,
rakesh.
These are two different functions. XtAppAddInput adds a external source -- a socket. When there is input, your input callback is called as a normal part of Xt`s event-loop processing, which you`d normally call via XtAppNextEvent(), as an infinite loop. You provide an input callback which handles the data, in the same way that you provide a timer callback that handles Xt timers or work procedure callbacks that handle Xt work procedures.