Re: XForms: updating form with blocked read from socket connection.

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 29 Aug 97 07:42:47 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have an Xforms app that involves reading from a socket connection
> in real-time. The reads are blocking and the data comes up every 2-4
> seconds making updating the Form very choppy. For a section of code
> I manage to do a fork with one process updating the form and the other
> waiting for a socket accept. When I start reading, I would really like
> not to have to fork at every read. Is there another way? ...

Yes. As I discussed in the last posting, use the I/O callback
mechanism. It will be invoked whenever there is activity on the
file descriptor.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/