Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ncar!mailrus!tut.cis.ohio-state.edu!bloom-beacon!ADMIN.COGNET.UCLA.EDU!casey From: casey@ADMIN.COGNET.UCLA.EDU (Casey Leedom) Newsgroups: comp.windows.x Subject: Re: HELP! (sockets/X) Message-ID: <8808240624.AA12669@kth.se> Date: 23 Aug 88 00:58:55 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: xpert@athena.mit.edu Organization: The Internet Lines: 18 In article dana@dino.bellcore.com (Dana A. Chee) writes: > > readfiles = (1 << yourSocket) | (1 << Xfd ); > n = select(32, &readfiles, 0, 0, 0); > > if( readfiles & (1 << Xfd) ) > ... Just being picky here. But if you're not going to use the fd_set stuff from , you should at least get the types you are using right. The above should read: readfiles = (1L << yourSocket) | (1L << Xfd ); n = select(32, &readfiles, (long *)0, (long *)0, (struct timeval *)0); if( readfiles & (1L << Xfd) ) Casey