Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!trey From: trey@mcnc.org (Joseph R. Bishop) Newsgroups: comp.windows.x Subject: XtAppAddInput Behaviour Message-ID: <1228@speedy.mcnc.org> Date: 30 May 89 20:13:46 GMT Distribution: na Organization: Microelectronics Center of NC; RTP, NC Lines: 23 I am writing an application using the X Version 11, Release 3 Toolkit Intrinsics and Athena Widgets. Within the application I make a call to XtAppAddInput passing a socket descriptor as the "source" argument and XtInputReadMask as the "condition" argument. My goal is to call the procedure passed as the "proc" argument each time data is ready to be read from the socket, i.e. each time data is written to its connected peer socket. The procedure itsself reads any data ready to be read from the socket. I ran a small test program where I wrote a single approximately 20 character long string to the peer socket. I expected the procedure to be called once and the character string read. Upon running the the test program, the character string was successfully read. However, instead of proceeding on with the rest of the test program, an infinite loop was entered with the "proc" procedure being called over and over. Any advice? Thanks in advance. Trey Bishop Duke University Department of Electrical Engineering trey@dukee.egr.duke.edu