Path: utzoo!attcan!uunet!mcvax!inria!axis!coms!mickey From: mickey@axis.fr (Michael Dance) Newsgroups: comp.windows.x Subject: XtAddInput Keywords: Exceptions, select, XtInputException Message-ID: <94@coms.fr> Date: 16 Jun 89 21:23:49 GMT Organization: Axis Digital, Paris Lines: 34 Recently I have been writing a server that receives messages from its clients form sockets (it was from named pipes (FIFO's) but I met a machine that supported select but only on ttys, ptys and sockets - now the server reads on sockets and writes in named pipes - bizarre but named pipes are neater). Everything works OK but while I wrote it I noticed that XtAddInput (and select) allow Exception events to be treated. Alas I haven't found anything to telle me what constitues an event, for example an EOF on a socket is NOT an event. AM I suffereing from culture shock (I'm used to 'pure' system V a la ATT perhaps a BSD fan would already know). Anyway I treat exceptions as link failures and close down the server side for the client whose socket 'exceptioned', is this right? I haven't a clue as I have never received an exception. PS My sockets are TCP Stream sockets PPS To those bickering :) about interface building tools the above mentioned server is part of one such tool that although not as user-friendly as certain micro resource contruction sets does allow easy definition of simple widgets (static text, single line text edit, multi line text edit with vertical scrolling, toggles (pushbutton with two states), scrollng lists and command buttons). It interfaces directly with C programs, callbacks are primitve but supported, updates of user program variables are also fairly simple. AND it also functions on old-fashioned simple terminals (well most of it:) All it needs is a really jazzy X windows graphical interface rather than its curretn ascii definition files and I would be really proud of it, as it is it's just quite good - ps I'm not advertising cos the name of the company I work for is NOT in this message nor in the signature, nor the name of the product. Who wants to be an X guru - I just want to please my customers with recent interfaces.