Path: utzoo!news-server.csri.toronto.edu!rutgers!usenet!ogicse!uwm.edu!wuarchive!csus.edu!ucdavis!csusac!unify!openlook!openlook-request From: openlook-request@openlook.ogi.edu Newsgroups: comp.windows.open-look Subject: Re: XView2.0 to DECstation Message-ID: <0vivoa5@openlook.Unify.Com> Date: 14 Mar 91 17:17:04 GMT Lines: 36 From: uunet!zoot.avgrp.cr.rok.com!dah (Dave Haverkam 1. svc_fdset -- On SUN this is declared as "extern svc_set svc_fdset;" in svc.h 2. svc_getreqset() -- On SUN #ifndef KERNEL extern void svc_getreqset(); /* takes fdset instead of int */ #endif These are from Sun's RPC (remote procedure call) library, which is freely available, but has nothing to do (per se) with X Windows. If you don't have RPC on your machine, you should be able to eliminate the references and never miss the stuff. The references are in XView to integrate the event dispatching--both X and RPC need to select on a set of file descriptors and dispatch routines based on messages arriving on them. If RPC dispatching is not integerated with X dispatching, one or the other suffers. It is possible (I know, I've done it :-) to do RPC dispatching from Xt using XtAppAddInput and XtRemoveInput, but since (with TCP-based RPC, anyway) the set of RPC file descriptors is changed by the RPC dispatching routines themselves as new connections are accepted and closed (not just in response to explicit requests by the library user, such as open a new client handle), it is tedious, requiring a check of the bits in svc_fdset against the descriptors Xt knows about aftereach svc_getreqset() call. I see now I should have said, all this RPC stuff only matters if you want your X program to be an RPC server (which includes callback RPC clients). If you need only a simple RPC client, in which the client blocks until the call returns, RPC dispatching is not needed. So Sun did a small service in integrating RPC dispatching into the XView event notification scheme, but you should probaly #ifdef it out unless you want to use Sun RPC in conjunction with X. (BTW, if your machine has NFS, it has RPC--but I don't know if your vendor exposes the interface.) Randy Brown (uunet!erik!rbrown)