> > Following works perfectly for me for many years: > > > > ioctl(Sock,FIONBIO,@tmp); // nonblocking > > > > All but one applications are single thread. > > Yes. You are using the 'work around'. Traditional UNIX sockets block. > Microsoft (and others) realised this would not work with a co-operative > multitasking operating system (e.g. Windows 3.1, MacOS 9 and prior) and so > the idea of non-blocking sockets was concieved. Indeed M$'s first Winsock > implementations used purely Non-blocking sockets.
Hmm, I think this is more due to the move to event driven programming models than cooperative multitasking. > The tcp/ip developer has two avenues to wander down. The _GUI_ (Event driven) tcp/ip developper. Server processes can use select and fork mechanisms easily too, since network is its main event loop. _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal