XtAppAddInput/XtAppNextEvent

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
XtAppAddInput/XtAppNextEvent

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.

ICS_support

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.