From: sharpd AT mindspring DOT com (Donald Sharp) Subject: Re: Programming server sockets without accept()?? 18 Jan 1999 22:16:19 -0800 Message-ID: <3.0.6.32.19990118155904.00922930.cygnus.gnu-win32@mindspring.com> References: <852566FD DOT 004D15A7 DOT 00 AT D51MTA10 DOT pok DOT ibm DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: setera AT us DOT ibm DOT com Cc: gnu-win32 AT cygnus DOT com One can, wait for incoming data via a select() call, and once data is there on a socket, the accept() call can be made. This is probably what is happening inside the x-server. donald At 07:58 AM 1/18/99 -0600, you wrote: > >Is it possible to program server-side sockets without a call to accept()? >I asked about this in an earlier message in the context of the X Font >Server. This server apparently does not ever do an accept(). I was always >under the impression that without an accept() call, that no connections >could be made. On the other hand, I know that accept() will block the >current thread of execution. This is not the model on which the X servers >were built. This server worked on B19, but does not work on B20 and I'm >trying to figure out why. > >Can anyone offer any insight into if and how this can work? > >Thanks, >Craig > >Craig Setera >AS/400 Enterprise Java Development >IBM Rochester >setera AT us DOT ibm DOT com >(507) 253-3387 - Tie: 553-3387 > > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request AT cygnus DOT com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".